diff --git a/config/reliability-gates.jsonc b/config/reliability-gates.jsonc index 258f5cf517c..8e2bb78850d 100644 --- a/config/reliability-gates.jsonc +++ b/config/reliability-gates.jsonc @@ -6151,7 +6151,7 @@ "providers": ["daemon", "runtime", "ssh", "wsl"], "coveredPlatforms": ["linux", "macos", "windows"], "coveredProviders": ["daemon", "runtime"], - "coverageNotes": "Audit5916 removes the entire local-worktree-creation-part-02.spec import from the retained runtime driver, intentionally losing the mocked exact-name create refusal when a selected PR matches a remote branch. The sole zero-auth terminal-handle registrar for another deleted suite is also retired, with no authored credit. Driver selectors retain only their narrowed import scope. Unchanged dated independent receipts are not equivalent replacement or fresh whole-gate validation. Complete prior account retained verbatim: Audit5901 removes only the mobile-creation-and-orchestration-part-03.spec import from the retained runtime driver. The fragment's missing-handle wait abort and waiter retirement on reload-exit alarms are intentionally lost. This is a conservative import-closure notice: named command filters may exclude those cases. Driver selectors remain; unchanged historical receipts retain their original scope and establish no fresh whole-gate pass or equivalent replacement. Complete prior account retained verbatim: Audit5896 removes only the paired-settings.spec and dispatch-mailbox-delivery.spec import lines from their retained runtime/mailbox drivers. Those imported suites and alarms are intentionally retired, without equivalent replacement. Driver selectors remain; unchanged dated receipts retain original scope and do not establish a new whole-gate import-closure pass. Complete prior account retained verbatim: 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. 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. Audit3881 intentionally removes the entire legacy E2EE channel and mobile socket-wiring test suites and the v2 additive runtime-capability refusal callback, without equivalent replacement. Those deleted suites leave current selectors and that v2 assertion alias is retired. Retained v2 replay/queue-counter cases do not establish the removed capability refusal. Reduced test bytes/selectors have no fresh execution in this static packet; independent dated daemon E2E receipts retain their complete original scope. Historical prior account (preserved verbatim): Git owner cleanup retires the mixed request-connection suite under repository test policy, including its encrypted request cancellation and cached paired-desktop authentication alarms, without equivalent replacement. Current commands and assertion references omit the retired suite; dated evidence retains its original scope and does not validate this reduced set. 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. Audit2153: Reduced sources intentionally lose the forwarding smoke and retire an unrelated current selector; historical runs do not validate changed source bytes. Historical prior account (preserved verbatim): Audit2133 current-parent preparation: Current reduced sources/selectors intentionally retire the alarms listed in knownGaps; prior dated runs and replacement claims do not validate the changed set. Historical prior account (preserved verbatim): Audit2095 current-parent preparation2126: Current reduced sources/selectors intentionally retire the alarms listed in knownGaps; prior dated runs and replacement claims do not validate the changed set. Historical prior account (preserved verbatim): Audit2090 (sources2088/2089): Current reduced suites intentionally retire the alarms listed in knownGaps; prior dated execution and replacement claims do not validate changed source bytes or selectors. Historical prior account (preserved verbatim): Audit2086 (sources2082/2083): Current reduced suites intentionally retire the alarms listed in knownGaps; prior dated execution and replacement claims do not validate changed source bytes or selectors. Historical prior account (preserved verbatim): Audit2076 (sources2073/2074): Intentionally retire these low-value alarms without replacement: src/main/runtime/orca-runtime-tests/terminal-handles-part-02.spec.ts: recovers a moved SSH pane through the tab it now sits in, not the one its lease froze; reports a plain expired orphan; does not report a pane whose only recent lease was superseded; does not report a pane whose only recent lease had its relay id recycled; picks the eligible orphan over a superseded predecessor that matches first; collects the same tabs the per-tab reader reports, in one sweep of the leases; reports no candidate when no lease names any of the worktree tabs. src/main/runtime/orca-runtime-tests/runtime-availability.spec.ts: starts unavailable with no authoritative window; reports the configured Windows terminal shell on status; reports floating workspace availability from settings on status; polls floating tabs with targeted PTY liveness and no repo/provider inventory; hydrates persisted tabs when the store cannot report repos; advertises browser screencast only when a renderer window is available; routes mobile Codex reset consumption through the account mutation coordinator; maps a definite pre-provider rejection into an authoritative current snapshot. Existing unrelated evidenceRuns retain their original scope; unchanged dated receipt objects do not validate changed source bytes or reduced selectors. No fresh gate execution or historical import-closure equivalence is claimed. Frozen current literal-import graph reaches these changed test bytes; unresolved local and computed edges remain debt, and current reachability is not historical execution or equivalent replacement evidence. Historical prior account (preserved verbatim): Audit2020: The CLI WebSocket source retains old-protocol refusal only; its paired-open, capability, timeout and admission projection examples are removed. No daemon-generation coverage is transferred to that callback. Both independent daemon E2E receipts remain unchanged at their original commands; the reduced unit selector has no fresh result. Historical prior account (preserved verbatim): Audit1983: Delete the reasonless-close scalar suite and optional-capability socket forwarding alias. Delete the mocked close-attribution topology field-inventory suite and its aliases/selectors; preserve independent dated 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): Audit1959 (sources 1957:11, 1957:35, 1957:36): The fixture-supplied repository roundtrip, isolated capability metadata readback, parser/default-timer/size-threshold/internal failure-counter examples and standalone handshake-only replay example are removed. Source11 retains real encrypted multi-client event ordering, reconnect snapshot and multiplex delivery under synthetic runtime state, and does not establish the broad handshake-to-reasonless-close refusal alias; retire that whole assertion object. Source36 capability metadata readback alias is retired. Source35 retains the actual v2 runtime-only metadata/downgrade refusal callback and captured mutating-trace fresh-nonce rejection; its mapped mobile-v2 refusal alias remains within modeled credential lookup scope. Both independent daemon E2E dated receipts remain byte-exact with their original commands and results. No historical passed receipt is narrowed or transferred to changed source bytes. No fresh execution, equivalent replacement, physical provider/PTY, live remote/mobile, rendered, cross-platform, soak or measured-budget result is claimed by this metadata packet. Historical prior account (preserved verbatim): Audit1939 (sources1934/1935): Retain actual parked exit/disposal/cancel/leaf progression using injected exit and close adapters. The retained last-watcher case checks exact lifecyclePtyId, but no retained callback establishes the whole existing replacement-or-sibling-incarnation alias. Retire that broad assertion object rather than transfer partial support. Capability admission, static fields and duplicate routing examples are intentionally lost; unchanged daemon E2E receipts remain scoped to their own commands. 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): The browser auth capability-advertisement case is removed in this audit; its direct encrypted-auth literal alarm is lost. Retained lifecycle evidence is not an equivalent replacement. Historical run commands and results remain historical. Recorded native Windows evidence covers the v21/v22/v23/v24/v25 named-pipe matrix. The deterministic daemon harness covers capable and legacy paired-runtime request shapes against live v25/v26 PTYs in separate worktrees, plus an unrelated control. Host/renderer tests cover old servers, missing liveness, stale publications, reused claims, split parents, explicit user intent, cross-profile isolation, remote runtime clients, SSH-provider routing, and WSL boundaries. A headed host paired to a separate live client, headless serve parity, Linux, SSH, and WSL remain explicit gaps. The audit removed private-router tests of mocked kill results and log fields. Their isolated success/failure attribution and pending-spawn tolerance alarms are no longer registered here; live lifecycle evidence does not establish equivalent log coverage. The isolated close-intent suite was removed. web-runtime-session.test.ts no longer supplies the lifecycle-close or old-server method-not-found assertions formerly referenced here. Their direct partition and RPC-shape alarms are lost; retained live daemon evidence does not establish equivalent coverage. The broad mirror fixture retains user-close suppression, refused-close reconciliation and optimistic reorder only. Its earlier reconnect/incarnation and projection examples no longer establish current daemon-generation coverage. Those narrow alarms are lost; other daemon evidence is not equivalent replacement coverage. Audit1318: src/shared/remote-runtime/control/remote-runtime-shared-control-connection.test.ts: Retain real local encrypted WebSocket regressions for pre-ready socket replacement preserving a request, close-before-ready logical subscription cleanup, unrelated RPC surviving another deadline, and pending setup abort leaving a sibling pending. Host server is synthetic and uses production crypto; kept scenarios also retain internal diagnostics/memory assertions unchanged. Remove happy routing, authority-envelope, unknown-ID/log, cleanup enum, binary, keepalive/liveness and production-budget/private socket inventories; intentionally lose those alarms, no physical host authorization, independent crypto or remote provider claim. Reduced selectors need fresh validation; historical full-suite receipts do not validate the changed coverage. No equivalent replacement or physical-provider claim. Audit1383: src/main/runtime/orca-runtime-tests/worktree-native-chat-setup.spec.ts reduced. Lose command-list/receipt/default/background activation matrices whose provider spawn returns canned IDs. Retained test proves actual tab allocation separation, not terminal startup. No equivalent replacement coverage is claimed. Existing exact unaffected receipts and their platform/provider/budget claims remain scoped to unchanged selectors. Changed optional selectors have no new execution result. Audit1401: src/main/runtime/orca-runtime-tests/mobile-session-tabs-duplicate-pty-repair.spec.ts removed. Loses listing-on-already-repaired-data alarm; it never established runtime repair invocation. src/main/runtime/orca-runtime-tests/mobile-session-tabs-split-agent-tab.spec.ts removed. Loses actual mobile split sibling shell versus recorded-agent resume command alarms; no equivalent coverage asserted. src/main/runtime/orca-runtime-tests/worktree-native-chat-setup.spec.ts removed. Loses separate setup/startup tab result in that manually assembled path. src/main/runtime/orca-runtime.test.ts reduced. Driver registration/import of a whole-deleted selected spec is removed; directly authored cases remain unchanged. No extra authored removal credit. No equivalent replacement coverage is claimed. Existing exact unaffected receipts remain unchanged and apply only to their unchanged selectors. Changed optional selectors have no new execution result.", + "coverageNotes": "Audit5922 intentionally retires mixed split/agent parking eligibility classification; incorrect eligibility can unmount a still-needed terminal or hide resume, though the retired predicate suite never mounts or resumes the actual view. These narrow alarms are lost without equivalent replacement. Remaining selectors/assertions and dated evidenceRuns retain their original scope; no fresh validation or whole-gate replacement claim. Preserve complete historical narratives and earlier knownGaps verbatim. Complete prior account retained verbatim: Audit5916 removes the entire local-worktree-creation-part-02.spec import from the retained runtime driver, intentionally losing the mocked exact-name create refusal when a selected PR matches a remote branch. The sole zero-auth terminal-handle registrar for another deleted suite is also retired, with no authored credit. Driver selectors retain only their narrowed import scope. Unchanged dated independent receipts are not equivalent replacement or fresh whole-gate validation. Complete prior account retained verbatim: Audit5901 removes only the mobile-creation-and-orchestration-part-03.spec import from the retained runtime driver. The fragment's missing-handle wait abort and waiter retirement on reload-exit alarms are intentionally lost. This is a conservative import-closure notice: named command filters may exclude those cases. Driver selectors remain; unchanged historical receipts retain their original scope and establish no fresh whole-gate pass or equivalent replacement. Complete prior account retained verbatim: Audit5896 removes only the paired-settings.spec and dispatch-mailbox-delivery.spec import lines from their retained runtime/mailbox drivers. Those imported suites and alarms are intentionally retired, without equivalent replacement. Driver selectors remain; unchanged dated receipts retain original scope and do not establish a new whole-gate import-closure pass. Complete prior account retained verbatim: 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. 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. Audit3881 intentionally removes the entire legacy E2EE channel and mobile socket-wiring test suites and the v2 additive runtime-capability refusal callback, without equivalent replacement. Those deleted suites leave current selectors and that v2 assertion alias is retired. Retained v2 replay/queue-counter cases do not establish the removed capability refusal. Reduced test bytes/selectors have no fresh execution in this static packet; independent dated daemon E2E receipts retain their complete original scope. Historical prior account (preserved verbatim): Git owner cleanup retires the mixed request-connection suite under repository test policy, including its encrypted request cancellation and cached paired-desktop authentication alarms, without equivalent replacement. Current commands and assertion references omit the retired suite; dated evidence retains its original scope and does not validate this reduced set. 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. Audit2153: Reduced sources intentionally lose the forwarding smoke and retire an unrelated current selector; historical runs do not validate changed source bytes. Historical prior account (preserved verbatim): Audit2133 current-parent preparation: Current reduced sources/selectors intentionally retire the alarms listed in knownGaps; prior dated runs and replacement claims do not validate the changed set. Historical prior account (preserved verbatim): Audit2095 current-parent preparation2126: Current reduced sources/selectors intentionally retire the alarms listed in knownGaps; prior dated runs and replacement claims do not validate the changed set. Historical prior account (preserved verbatim): Audit2090 (sources2088/2089): Current reduced suites intentionally retire the alarms listed in knownGaps; prior dated execution and replacement claims do not validate changed source bytes or selectors. Historical prior account (preserved verbatim): Audit2086 (sources2082/2083): Current reduced suites intentionally retire the alarms listed in knownGaps; prior dated execution and replacement claims do not validate changed source bytes or selectors. Historical prior account (preserved verbatim): Audit2076 (sources2073/2074): Intentionally retire these low-value alarms without replacement: src/main/runtime/orca-runtime-tests/terminal-handles-part-02.spec.ts: recovers a moved SSH pane through the tab it now sits in, not the one its lease froze; reports a plain expired orphan; does not report a pane whose only recent lease was superseded; does not report a pane whose only recent lease had its relay id recycled; picks the eligible orphan over a superseded predecessor that matches first; collects the same tabs the per-tab reader reports, in one sweep of the leases; reports no candidate when no lease names any of the worktree tabs. src/main/runtime/orca-runtime-tests/runtime-availability.spec.ts: starts unavailable with no authoritative window; reports the configured Windows terminal shell on status; reports floating workspace availability from settings on status; polls floating tabs with targeted PTY liveness and no repo/provider inventory; hydrates persisted tabs when the store cannot report repos; advertises browser screencast only when a renderer window is available; routes mobile Codex reset consumption through the account mutation coordinator; maps a definite pre-provider rejection into an authoritative current snapshot. Existing unrelated evidenceRuns retain their original scope; unchanged dated receipt objects do not validate changed source bytes or reduced selectors. No fresh gate execution or historical import-closure equivalence is claimed. Frozen current literal-import graph reaches these changed test bytes; unresolved local and computed edges remain debt, and current reachability is not historical execution or equivalent replacement evidence. Historical prior account (preserved verbatim): Audit2020: The CLI WebSocket source retains old-protocol refusal only; its paired-open, capability, timeout and admission projection examples are removed. No daemon-generation coverage is transferred to that callback. Both independent daemon E2E receipts remain unchanged at their original commands; the reduced unit selector has no fresh result. Historical prior account (preserved verbatim): Audit1983: Delete the reasonless-close scalar suite and optional-capability socket forwarding alias. Delete the mocked close-attribution topology field-inventory suite and its aliases/selectors; preserve independent dated 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): Audit1959 (sources 1957:11, 1957:35, 1957:36): The fixture-supplied repository roundtrip, isolated capability metadata readback, parser/default-timer/size-threshold/internal failure-counter examples and standalone handshake-only replay example are removed. Source11 retains real encrypted multi-client event ordering, reconnect snapshot and multiplex delivery under synthetic runtime state, and does not establish the broad handshake-to-reasonless-close refusal alias; retire that whole assertion object. Source36 capability metadata readback alias is retired. Source35 retains the actual v2 runtime-only metadata/downgrade refusal callback and captured mutating-trace fresh-nonce rejection; its mapped mobile-v2 refusal alias remains within modeled credential lookup scope. Both independent daemon E2E dated receipts remain byte-exact with their original commands and results. No historical passed receipt is narrowed or transferred to changed source bytes. No fresh execution, equivalent replacement, physical provider/PTY, live remote/mobile, rendered, cross-platform, soak or measured-budget result is claimed by this metadata packet. Historical prior account (preserved verbatim): Audit1939 (sources1934/1935): Retain actual parked exit/disposal/cancel/leaf progression using injected exit and close adapters. The retained last-watcher case checks exact lifecyclePtyId, but no retained callback establishes the whole existing replacement-or-sibling-incarnation alias. Retire that broad assertion object rather than transfer partial support. Capability admission, static fields and duplicate routing examples are intentionally lost; unchanged daemon E2E receipts remain scoped to their own commands. 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): The browser auth capability-advertisement case is removed in this audit; its direct encrypted-auth literal alarm is lost. Retained lifecycle evidence is not an equivalent replacement. Historical run commands and results remain historical. Recorded native Windows evidence covers the v21/v22/v23/v24/v25 named-pipe matrix. The deterministic daemon harness covers capable and legacy paired-runtime request shapes against live v25/v26 PTYs in separate worktrees, plus an unrelated control. Host/renderer tests cover old servers, missing liveness, stale publications, reused claims, split parents, explicit user intent, cross-profile isolation, remote runtime clients, SSH-provider routing, and WSL boundaries. A headed host paired to a separate live client, headless serve parity, Linux, SSH, and WSL remain explicit gaps. The audit removed private-router tests of mocked kill results and log fields. Their isolated success/failure attribution and pending-spawn tolerance alarms are no longer registered here; live lifecycle evidence does not establish equivalent log coverage. The isolated close-intent suite was removed. web-runtime-session.test.ts no longer supplies the lifecycle-close or old-server method-not-found assertions formerly referenced here. Their direct partition and RPC-shape alarms are lost; retained live daemon evidence does not establish equivalent coverage. The broad mirror fixture retains user-close suppression, refused-close reconciliation and optimistic reorder only. Its earlier reconnect/incarnation and projection examples no longer establish current daemon-generation coverage. Those narrow alarms are lost; other daemon evidence is not equivalent replacement coverage. Audit1318: src/shared/remote-runtime/control/remote-runtime-shared-control-connection.test.ts: Retain real local encrypted WebSocket regressions for pre-ready socket replacement preserving a request, close-before-ready logical subscription cleanup, unrelated RPC surviving another deadline, and pending setup abort leaving a sibling pending. Host server is synthetic and uses production crypto; kept scenarios also retain internal diagnostics/memory assertions unchanged. Remove happy routing, authority-envelope, unknown-ID/log, cleanup enum, binary, keepalive/liveness and production-budget/private socket inventories; intentionally lose those alarms, no physical host authorization, independent crypto or remote provider claim. Reduced selectors need fresh validation; historical full-suite receipts do not validate the changed coverage. No equivalent replacement or physical-provider claim. Audit1383: src/main/runtime/orca-runtime-tests/worktree-native-chat-setup.spec.ts reduced. Lose command-list/receipt/default/background activation matrices whose provider spawn returns canned IDs. Retained test proves actual tab allocation separation, not terminal startup. No equivalent replacement coverage is claimed. Existing exact unaffected receipts and their platform/provider/budget claims remain scoped to unchanged selectors. Changed optional selectors have no new execution result. Audit1401: src/main/runtime/orca-runtime-tests/mobile-session-tabs-duplicate-pty-repair.spec.ts removed. Loses listing-on-already-repaired-data alarm; it never established runtime repair invocation. src/main/runtime/orca-runtime-tests/mobile-session-tabs-split-agent-tab.spec.ts removed. Loses actual mobile split sibling shell versus recorded-agent resume command alarms; no equivalent coverage asserted. src/main/runtime/orca-runtime-tests/worktree-native-chat-setup.spec.ts removed. Loses separate setup/startup tab result in that manually assembled path. src/main/runtime/orca-runtime.test.ts reduced. Driver registration/import of a whole-deleted selected spec is removed; directly authored cases remain unchanged. No extra authored removal credit. No equivalent replacement coverage is claimed. Existing exact unaffected receipts remain unchanged and apply only to their unchanged selectors. Changed optional selectors have no new execution result.", "motivatingLinks": [ "https://github.com/stablyai/orca/issues/9749", "https://github.com/stablyai/orca/issues/9949", @@ -6160,9 +6160,9 @@ "https://github.com/stablyai/orca/issues/9229" ], "invariant": "Reconnect, replay, or lifecycle observations from a viewer that negotiated explicit close intent must never kill a live PTY. A capable reasonless close must keep and republish; a legacy paired viewer must retain current-main behavior because its intentional close and cleanup echo are wire-identical. Lifecycle close requires the exact observed publication, terminal, environment, and authoritative liveness, never signals a process, and leaves renderer-owned or partial-split retirement to its owner. Legacy daemon hello and warm reattachment remain non-destructive.", - "oracle": "Audit5916 removes the entire local-worktree-creation-part-02.spec import from the retained runtime driver, intentionally losing the mocked exact-name create refusal when a selected PR matches a remote branch. The sole zero-auth terminal-handle registrar for another deleted suite is also retired, with no authored credit. Driver selectors retain only their narrowed import scope. Unchanged dated independent receipts are not equivalent replacement or fresh whole-gate validation. Complete prior account retained verbatim: Audit5896 removes only the paired-settings.spec and dispatch-mailbox-delivery.spec import lines from their retained runtime/mailbox drivers. Those imported suites and alarms are intentionally retired, without equivalent replacement. Driver selectors remain; unchanged dated receipts retain original scope and do not establish a new whole-gate import-closure pass. Complete prior account retained verbatim: 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. Audit3881 intentionally removes the entire legacy E2EE channel and mobile socket-wiring test suites and the v2 additive runtime-capability refusal callback, without equivalent replacement. Those deleted suites leave current selectors and that v2 assertion alias is retired. Retained v2 replay/queue-counter cases do not establish the removed capability refusal. Reduced test bytes/selectors have no fresh execution in this static packet; independent dated daemon E2E receipts retain their complete original scope. Historical prior account (preserved verbatim): 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. Audit3774 (independent peer expansion of3773): deliberately retire7authored/13potential expanded registrations across4whole suites: standalone truncated8-byte E2EE guard; open/empty readiness null fast-path; capability parser acceptance/atomic malformed-array bounds; phone/delegated-parent/desktop/in-process creator provenance projections. These are real guard/policy alarms accepted as low marginal value, not tautologies. No equivalent replacement, authenticated-refusal, observer delivery, persisted visibility, synchronous scheduling or fresh execution is claimed. Prior dated receipts retain their exact original scopes and do not validate the changed/reduced current selector. Independent daemon E2E receipts remain scoped to their own unchanged commands. Historical prior account (preserved verbatim): 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. 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): Audit1983: Delete the reasonless-close scalar suite and optional-capability socket forwarding alias. Delete the mocked close-attribution topology field-inventory suite and its aliases/selectors; preserve independent dated 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): Audit1959 (sources 1957:11, 1957:35, 1957:36): The fixture-supplied repository roundtrip, isolated capability metadata readback, parser/default-timer/size-threshold/internal failure-counter examples and standalone handshake-only replay example are removed. Source11 retains real encrypted multi-client event ordering, reconnect snapshot and multiplex delivery under synthetic runtime state, and does not establish the broad handshake-to-reasonless-close refusal alias; retire that whole assertion object. Source36 capability metadata readback alias is retired. Source35 retains the actual v2 runtime-only metadata/downgrade refusal callback and captured mutating-trace fresh-nonce rejection; its mapped mobile-v2 refusal alias remains within modeled credential lookup scope. Both independent daemon E2E dated receipts remain byte-exact with their original commands and results. No historical passed receipt is narrowed or transferred to changed source bytes. No fresh execution, equivalent replacement, physical provider/PTY, live remote/mobile, rendered, cross-platform, soak or measured-budget result is claimed by this metadata packet. Historical prior account (preserved verbatim): Audit1939 (sources1934/1935): Retain actual parked exit/disposal/cancel/leaf progression using injected exit and close adapters. The retained last-watcher case checks exact lifecyclePtyId, but no retained callback establishes the whole existing replacement-or-sibling-incarnation alias. Retire that broad assertion object rather than transfer partial support. Capability admission, static fields and duplicate routing examples are intentionally lost; unchanged daemon E2E receipts remain scoped to their own commands. 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): Existing exact unchanged-selector receipts remain the only current execution evidence. Changed source selectors have no fresh execution result. Historical prior-source oracle account: Start isolated v25 and v26 daemon generations with one capable-viewer PTY and one legacy-viewer PTY per generation in four target worktrees plus an unaddressed control PTY in a fifth worktree. Route them through the production desktop scanner, runtime, RPC dispatcher, renderer-close relay, and daemon router. First issue sequential reasonless closes from an authenticated capable connection and require refusal, snapshot republish, zero shutdown calls, exact process survival, and post-close I/O. Then issue the byte-identical requests without the negotiated capability and require current-main behavior: two ordered immediate shutdowns, session-killed events, and exact root/descendant death, while capable and control PTYs survive. An observer lists all targets before, between, and after while issuing zero closes. Unit contracts also require in-process reasonless refusal, legacy runtime/mobile compatibility, explicit user closes, encrypted client-auth advertisement, and old-server lifecycle calls never to fall back. Audit4587 retires the one-case CLI WebSocket protocol/preflight suite and its hand-built server; its cross-layer non-delivery witness is intentionally lost, with no replacement coverage claimed.", + "oracle": "Audit5922 intentionally retires mixed split/agent parking eligibility classification; incorrect eligibility can unmount a still-needed terminal or hide resume, though the retired predicate suite never mounts or resumes the actual view. These narrow alarms are lost without equivalent replacement. Remaining selectors/assertions and dated evidenceRuns retain their original scope; no fresh validation or whole-gate replacement claim. Preserve complete historical narratives and earlier knownGaps verbatim. Complete prior account retained verbatim: Audit5916 removes the entire local-worktree-creation-part-02.spec import from the retained runtime driver, intentionally losing the mocked exact-name create refusal when a selected PR matches a remote branch. The sole zero-auth terminal-handle registrar for another deleted suite is also retired, with no authored credit. Driver selectors retain only their narrowed import scope. Unchanged dated independent receipts are not equivalent replacement or fresh whole-gate validation. Complete prior account retained verbatim: Audit5896 removes only the paired-settings.spec and dispatch-mailbox-delivery.spec import lines from their retained runtime/mailbox drivers. Those imported suites and alarms are intentionally retired, without equivalent replacement. Driver selectors remain; unchanged dated receipts retain original scope and do not establish a new whole-gate import-closure pass. Complete prior account retained verbatim: 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. Audit3881 intentionally removes the entire legacy E2EE channel and mobile socket-wiring test suites and the v2 additive runtime-capability refusal callback, without equivalent replacement. Those deleted suites leave current selectors and that v2 assertion alias is retired. Retained v2 replay/queue-counter cases do not establish the removed capability refusal. Reduced test bytes/selectors have no fresh execution in this static packet; independent dated daemon E2E receipts retain their complete original scope. Historical prior account (preserved verbatim): 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. Audit3774 (independent peer expansion of3773): deliberately retire7authored/13potential expanded registrations across4whole suites: standalone truncated8-byte E2EE guard; open/empty readiness null fast-path; capability parser acceptance/atomic malformed-array bounds; phone/delegated-parent/desktop/in-process creator provenance projections. These are real guard/policy alarms accepted as low marginal value, not tautologies. No equivalent replacement, authenticated-refusal, observer delivery, persisted visibility, synchronous scheduling or fresh execution is claimed. Prior dated receipts retain their exact original scopes and do not validate the changed/reduced current selector. Independent daemon E2E receipts remain scoped to their own unchanged commands. Historical prior account (preserved verbatim): 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. 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): Audit1983: Delete the reasonless-close scalar suite and optional-capability socket forwarding alias. Delete the mocked close-attribution topology field-inventory suite and its aliases/selectors; preserve independent dated 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): Audit1959 (sources 1957:11, 1957:35, 1957:36): The fixture-supplied repository roundtrip, isolated capability metadata readback, parser/default-timer/size-threshold/internal failure-counter examples and standalone handshake-only replay example are removed. Source11 retains real encrypted multi-client event ordering, reconnect snapshot and multiplex delivery under synthetic runtime state, and does not establish the broad handshake-to-reasonless-close refusal alias; retire that whole assertion object. Source36 capability metadata readback alias is retired. Source35 retains the actual v2 runtime-only metadata/downgrade refusal callback and captured mutating-trace fresh-nonce rejection; its mapped mobile-v2 refusal alias remains within modeled credential lookup scope. Both independent daemon E2E dated receipts remain byte-exact with their original commands and results. No historical passed receipt is narrowed or transferred to changed source bytes. No fresh execution, equivalent replacement, physical provider/PTY, live remote/mobile, rendered, cross-platform, soak or measured-budget result is claimed by this metadata packet. Historical prior account (preserved verbatim): Audit1939 (sources1934/1935): Retain actual parked exit/disposal/cancel/leaf progression using injected exit and close adapters. The retained last-watcher case checks exact lifecyclePtyId, but no retained callback establishes the whole existing replacement-or-sibling-incarnation alias. Retire that broad assertion object rather than transfer partial support. Capability admission, static fields and duplicate routing examples are intentionally lost; unchanged daemon E2E receipts remain scoped to their own commands. 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): Existing exact unchanged-selector receipts remain the only current execution evidence. Changed source selectors have no fresh execution result. Historical prior-source oracle account: Start isolated v25 and v26 daemon generations with one capable-viewer PTY and one legacy-viewer PTY per generation in four target worktrees plus an unaddressed control PTY in a fifth worktree. Route them through the production desktop scanner, runtime, RPC dispatcher, renderer-close relay, and daemon router. First issue sequential reasonless closes from an authenticated capable connection and require refusal, snapshot republish, zero shutdown calls, exact process survival, and post-close I/O. Then issue the byte-identical requests without the negotiated capability and require current-main behavior: two ordered immediate shutdowns, session-killed events, and exact root/descendant death, while capable and control PTYs survive. An observer lists all targets before, between, and after while issuing zero closes. Unit contracts also require in-process reasonless refusal, legacy runtime/mobile compatibility, explicit user closes, encrypted client-auth advertisement, and old-server lifecycle calls never to fall back. Audit4587 retires the one-case CLI WebSocket protocol/preflight suite and its hand-built server; its cross-layer non-delivery witness is intentionally lost, with no replacement coverage claimed.", "commands": [ - "pnpm exec vitest run --config config/vitest.config.ts src/main/runtime/construction/orca-runtime.test.ts src/main/runtime/rpc/mobile/e2ee/e2ee-channel-v2.test.ts src/shared/remote-runtime/remote-runtime-client.test.ts src/shared/remote-runtime/control/remote-runtime-shared-control-connection.test.ts src/renderer/src/web/web-runtime-client.test.ts src/renderer/src/components/terminal/terminal-close-incarnation.test.ts src/renderer/src/components/terminal-pane/parking/output-watchers/terminal-parked-tab-watchers.test.ts", + "pnpm exec vitest run --config config/vitest.config.ts src/main/runtime/construction/orca-runtime.test.ts src/main/runtime/rpc/mobile/e2ee/e2ee-channel-v2.test.ts src/shared/remote-runtime/remote-runtime-client.test.ts src/shared/remote-runtime/control/remote-runtime-shared-control-connection.test.ts src/renderer/src/web/web-runtime-client.test.ts src/renderer/src/components/terminal/terminal-close-incarnation.test.ts", "pnpm exec playwright test tests/e2e/daemon-generation-reconnect-safety.spec.ts --config tests/playwright.config.ts --project electron-headless --workers=1", "pnpm exec playwright test tests/e2e/daemon-generation-legacy-close-safety.spec.ts --config tests/playwright.config.ts --project electron-headless --workers=1" ], @@ -6173,7 +6173,6 @@ "src/shared/remote-runtime/control/remote-runtime-shared-control-connection.test.ts", "src/renderer/src/web/web-runtime-client.test.ts", "src/renderer/src/components/terminal/terminal-close-incarnation.test.ts", - "src/renderer/src/components/terminal-pane/parking/output-watchers/terminal-parked-tab-watchers.test.ts", "tests/e2e/daemon-generation-reconnect-safety.spec.ts", "tests/e2e/daemon-generation-legacy-close-safety.spec.ts" ], @@ -6302,7 +6301,8 @@ "Audit4389 retires the entire terminal-tab-actions mock-projection suite (8 authored/10 finite cases). Real local/host mutation, confirmation settlement and transport are mocked; routing/reason/pin/sibling spy alarms intentionally lost, with no replacement or equivalence claim. Historical entries remain archival only. Original active command: pnpm exec vitest run --config config/vitest.config.ts src/main/runtime/construction/orca-runtime.test.ts src/main/runtime/rpc/mobile/e2ee/e2ee-channel-v2.test.ts src/shared/remote-runtime/remote-runtime-client.test.ts src/shared/remote-runtime/control/remote-runtime-shared-control-connection.test.ts src/cli/runtime/websocket-transport.test.ts src/renderer/src/web/web-runtime-client.test.ts src/renderer/src/components/terminal/terminal-tab-actions.test.ts src/renderer/src/components/terminal/terminal-close-incarnation.test.ts src/renderer/src/components/terminal-pane/parking/output-watchers/terminal-parked-tab-watchers.test.ts", "Audit5896 removes only the paired-settings.spec and dispatch-mailbox-delivery.spec import lines from their retained runtime/mailbox drivers. Those imported suites and alarms are intentionally retired, without equivalent replacement. Driver selectors remain; unchanged dated receipts retain original scope and do not establish a new whole-gate import-closure pass. ", "Audit5901 removes only the mobile-creation-and-orchestration-part-03.spec import from the retained runtime driver. The fragment's missing-handle wait abort and waiter retirement on reload-exit alarms are intentionally lost. This is a conservative import-closure notice: named command filters may exclude those cases. Driver selectors remain; unchanged historical receipts retain their original scope and establish no fresh whole-gate pass or equivalent replacement. ", - "Audit5916 removes the entire local-worktree-creation-part-02.spec import from the retained runtime driver, intentionally losing the mocked exact-name create refusal when a selected PR matches a remote branch. The sole zero-auth terminal-handle registrar for another deleted suite is also retired, with no authored credit. Driver selectors retain only their narrowed import scope. Unchanged dated independent receipts are not equivalent replacement or fresh whole-gate validation. " + "Audit5916 removes the entire local-worktree-creation-part-02.spec import from the retained runtime driver, intentionally losing the mocked exact-name create refusal when a selected PR matches a remote branch. The sole zero-auth terminal-handle registrar for another deleted suite is also retired, with no authored credit. Driver selectors retain only their narrowed import scope. Unchanged dated independent receipts are not equivalent replacement or fresh whole-gate validation. ", + "Audit5922 intentionally retires mixed split/agent parking eligibility classification; incorrect eligibility can unmount a still-needed terminal or hide resume, though the retired predicate suite never mounts or resumes the actual view. These narrow alarms are lost without equivalent replacement. Remaining selectors/assertions and dated evidenceRuns retain their original scope; no fresh validation or whole-gate replacement claim. Preserve complete historical narratives and earlier knownGaps verbatim." ], "demotionRule": "Keep experimental or quarantine if reconnect emits session-killed for a live canary, an exact root/descendant dies, an old server receives fallback destructive close, cleanup leaks a fixture process/pipe, or the gate flakes without a proven harness defect." }, @@ -6807,7 +6807,7 @@ "providers": ["local", "daemon", "ssh", "wsl", "remote-runtime"], "coveredPlatforms": ["macos"], "coveredProviders": ["local", "daemon", "ssh", "wsl", "remote-runtime"], - "coverageNotes": "Audit5916 removes the entire local-worktree-creation-part-02.spec import from the retained runtime driver, intentionally losing the mocked exact-name create refusal when a selected PR matches a remote branch. The sole zero-auth terminal-handle registrar for another deleted suite is also retired, with no authored credit. Driver selectors retain only their narrowed import scope. Unchanged dated independent receipts are not equivalent replacement or fresh whole-gate validation. Complete prior account retained verbatim: Audit5901 removes only the mobile-creation-and-orchestration-part-03.spec import from the retained runtime driver. The fragment's missing-handle wait abort and waiter retirement on reload-exit alarms are intentionally lost. This is a conservative import-closure notice: named command filters may exclude those cases. Driver selectors remain; unchanged historical receipts retain their original scope and establish no fresh whole-gate pass or equivalent replacement. Complete prior account retained verbatim: Audit5896 removes only the paired-settings.spec and dispatch-mailbox-delivery.spec import lines from their retained runtime/mailbox drivers. Those imported suites and alarms are intentionally retired, without equivalent replacement. Driver selectors remain; unchanged dated receipts retain original scope and do not establish a new whole-gate import-closure pass. Complete prior account retained verbatim: Audit5706 narrows claimed-owner assertions to the two retained asynchronous registry cases; retired claims and the original object are preserved in knownGaps. No fresh validation or replacement coverage. Historical prior account (preserved verbatim): Audit5605 retires complete low-value suites src/renderer/src/runtime/hosted-terminals/recovery/web-session-terminal-orphan-recovery.test.ts. Intentionally lose serialization of newer convergence after an in-flight adoption conflict alarms. Reduced commands have no fresh gate evidence or equivalent replacement claim. Historical prior account follows: 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. Audit4352 deletes the whole mocked daemon router, session-owner resolver, degraded-provider, terminal-host CWD-readability and foreground-inspection suites plus the native-process-CWD fixture suite; recovery retains only public multi-pane proactive socket-death notification/remount. Intentionally lose retirement admission, stale-inventory/fenced-kill authority, attach-only re-resolution/absence, fast-exit routing, sleep CWD checkpoint/wake, diagnostic cancellation/shutdown and foreground census/session-change alarms. No equivalent replacement or fresh gate execution is claimed. Historical prior account (preserved verbatim): 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. 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. The Codex restart suite and exact command/testFiles/assertionRef are removed; its mock account-change/remote-pane restart alarms are intentionally lost. 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. Audit3368 retires the whole host-session-launch unit source, including host-authority/create/ensure/legacy/Kimi/refusal/draft/options/prompt/cancel/kill/shared-disconnect and passive-sleep output callback alarms, without equivalent replacement. Its unit command token and test-file entry retire. Five unrelated macOS receipts remain verbatim and keep only their original scope; no fresh changed-selector/runtime/provider/process/UI/mobile/mixed-version/cross-platform evidence is claimed. Audit3359 retires the whole create-handoff suite. Supplied disposition, late completion, close-callback and metadata-bookkeeping alarms are intentionally lost without equivalent replacement; the compound unit selector and test-file entry narrow accordingly. Five unrelated macOS receipts retain their original scope. No fresh runtime, process-deduplication, physical provider/network, historical-import, mobile, mixed-version or cross-platform validation is claimed. Audit 3301 removes the caller-chat-target precedence over host selection example from web-session-tabs-sync-focus-intent.test.ts. The snapshot-before-RPC replay and split-sibling-first exact-leaf focus cases remain unchanged and match the existing assertion reference. Preserve current selectors, assertion references, unrelated active receipts and complete archived history. These mocked state-composition survivors provide no equivalent replacement, rendered, native, network or fresh execution proof. Audit2694 source-only review: Remove14 authored/14 expanded cases in the renderer completion wrapper family, including the complete bell/query-reply/stale-input factory, without replacement. Retain29 authored/34 expanded cases with unchanged callback bodies. Three removals are the existing pending2203 overlap and must be adopted/count-reconciled once; eleven are fresh removals. No current-source runtime or gate execution is supplied by this packet; dated evidence retains its original source scope and does not validate the reduced factory bytes. No equivalent replacement, physical provider, mixed-version, mobile, rendered UI, cross-platform, soak or measured-performance result is claimed. The existing command and testFiles selector retain tests/pty-connection-completion-and-notification.test.ts; no wrapper-specific assertionRef is removed. Historical selector results do not validate its changed reachable factories. Historical prior account (preserved verbatim): Audit2709 removes src/renderer/src/runtime/web-session-tabs-sync/inventory/remote-runtime-session-tabs-inflight.test.ts: intentionally retire waiting out an older inventory and sharing a fresh post-operation request among concurrent callers. No equivalent replacement or fresh execution is claimed. Dated receipts remain historical evidence for their unchanged selectors only; they do not validate the reduced commands or full current gate. Historical prior account (preserved verbatim): Audit2133 current-parent preparation: Current reduced sources/selectors intentionally retire the alarms listed in knownGaps; prior dated runs and replacement claims do not validate the changed set. Historical prior account (preserved verbatim): Audit2095 current-parent preparation2126: Current reduced sources/selectors intentionally retire the alarms listed in knownGaps; prior dated runs and replacement claims do not validate the changed set. Historical prior account (preserved verbatim): Audit2090 (sources2088/2089): Current reduced suites intentionally retire the alarms listed in knownGaps; prior dated execution and replacement claims do not validate changed source bytes or selectors. Historical prior account (preserved verbatim): Audit2086 (sources2082/2083): Current reduced suites intentionally retire the alarms listed in knownGaps; prior dated execution and replacement claims do not validate changed source bytes or selectors. Historical prior account (preserved verbatim): Audit2076 (sources2073/2074): Intentionally retire these low-value alarms without replacement: src/main/runtime/orca-runtime-tests/terminal-handles-part-02.spec.ts: recovers a moved SSH pane through the tab it now sits in, not the one its lease froze; reports a plain expired orphan; does not report a pane whose only recent lease was superseded; does not report a pane whose only recent lease had its relay id recycled; picks the eligible orphan over a superseded predecessor that matches first; collects the same tabs the per-tab reader reports, in one sweep of the leases; reports no candidate when no lease names any of the worktree tabs. src/main/runtime/orca-runtime-tests/runtime-availability.spec.ts: starts unavailable with no authoritative window; reports the configured Windows terminal shell on status; reports floating workspace availability from settings on status; polls floating tabs with targeted PTY liveness and no repo/provider inventory; hydrates persisted tabs when the store cannot report repos; advertises browser screencast only when a renderer window is available; routes mobile Codex reset consumption through the account mutation coordinator; maps a definite pre-provider rejection into an authoritative current snapshot. Existing unrelated evidenceRuns retain their original scope; unchanged dated receipt objects do not validate changed source bytes or reduced selectors. No fresh gate execution or historical import-closure equivalence is claimed. Frozen current literal-import graph reaches these changed test bytes; unresolved local and computed edges remain debt, and current reachability is not historical execution or equivalent replacement evidence. Historical prior account (preserved verbatim): Audit2003: Delete the complete pure orphan-topology suite and its file membership; preserve the other selectors from its combined command after archiving the original command string. Lost alarms are synthetic current-layout preservation, one-anchor grafting and ambiguous-anchor appending examples. Do not transfer their ownership/topology scope to sibling suites. Preserve all5 independent historical receipts exactly. Changed-source prior results do not validate reduced-source bytes. No fresh execution, equivalent replacement, red/green, measured budget, soak, physical provider/PTY, rendered, live remote/mobile or cross-platform result is claimed. Historical prior account (preserved verbatim): Audit1983: Delete the mocked agent-session suite and its prospective selector and aliases. Retire all3 whole dated changed-selector receipts, preserving their original raw objects in historical gaps without transferring counts or durations. Preserve5 unrelated receipts. Changed-source prior results do not validate reduced-source bytes. No fresh execution, equivalent replacement, red/green, measured budget, soak, provider/PTY, rendered, live remote/mobile or cross-platform result is claimed. Historical prior account (preserved verbatim): Audit1931 (sources1928/1929): Partial agent-operation service suite retains only concurrent retry joining with changed-fingerprint conflict. Retire its complete three-title assertion object: old-owner legacy fallback before side effects, nested SSH Pi transcript refusal and completed/ambiguous physical-commit replay fences are no longer backed. Other probe/launch option/ledger/failure/remote-inventory examples disappear as detailed below. No actual provider spawn, live SSH or physical commit proof is retained by this source. Preserve meaningful remaining selectors/assertions and unchanged dated receipts within their original scope. Reduced selectors have no fresh gate execution evidence in this metadata packet. No equivalent replacement, physical watcher/PTY/provider, live SSH/remote/mobile, rendered, cross-platform, soak or measured-budget result is claimed. Historical prior account (preserved verbatim): Audit1911: The complete provider PTY-inspection mock suite is removed: missing-provider rejection, stale-PTY renderer unverifiable mapping, preserved supplied renderer failures, and supplied transport-loss mapping alarms are intentionally lost. No actual terminal teardown, daemon error or remote transport was exercised. Only the deleted explicit source tokens, testFile and whole assertionRef are removed. Meaningful remaining source selectors/assertions and unaffected dated receipts retain their original scope. No equivalent replacement, fresh reduced-gate, native/platform/provider, soak or measured-budget result is claimed. Historical prior account (preserved verbatim): Audit1627 removes low-value mocked daemon projections, scalar tables and duplicate terminal examples without equivalent replacement coverage. Per-source reviews record retained terminal content preservation, process ownership refusal and recovery boundaries together with injected/native/remote limits. Affected historical receipts are retired; gates without active current evidence are downgraded. Historical scope before this audit: Audit1623 removes low-value mocked daemon projections, scalar tables and duplicate terminal examples without equivalent replacement coverage. Per-source reviews record retained terminal content preservation, process ownership refusal and recovery boundaries together with injected/native/remote limits. Affected historical receipts are retired; gates without active current evidence are downgraded. Historical scope before this audit: Audit1495 intentionally deletes the orphan-owner suite: explicit owner/host predicate examples are retired; no equivalent replacement coverage or fresh result is claimed. Retained exact unchanged-source receipts remain the only current execution evidence. Reduced selectors have no fresh execution result. Audit1417 intentionally deletes src/renderer/src/components/terminal-pane/agent-completion-coordinator-pending-title-inspection.test.ts: Loses obsolete pending title process races, inspection failure suppression, explicit completion precedence and delayed remote inspection alarms. No equivalent replacement coverage or fresh result is claimed. Historical coverage account: Audit1342 changes referenced sources. Retained unchanged-source receipts apply only to their unchanged commands; the reduced selectors have no new execution result. Historical coverage account (not a current claim for changed sources): Audits1301 and1308 changes referenced sources. Retained unchanged-source receipts apply only to their unchanged commands; the reduced selectors have no new execution result. Historical coverage account (not a current claim for changed sources): Deterministic macOS tests cover controller claims, daemon and SSH/relay operation replay, mixed-version selection, runtime ownership, exact provisional handoff, durable terminal retirement, two independent viewer mirrors, guarded adoption of legacy live PTYs, and completion classification when either the outer remote transport or authoritative host/provider process inspection becomes unreachable. The adoption harness models v1.4.150 agent/setup/shell tabs, current-generation restart and reconnect, exact handle/incarnation/worktree/host checks, topology CAS, competing clients, split-pane/group restoration, WSL ownership, and SSH owner rejection. The secondary parity repro runs independent clients against one headless remote Orca runtime over encrypted pairing and a real daemon-backed PTY, with tokened fixture-process identity separated from unrelated Codex app-server startup probes. The automated primary topology runs an isolated headed macOS Orca desktop server plus a separate paired web client and proves viewer-local fresh/resume focus, exact legacy placement, writable PTYs, unrelated-terminal survival, and host/client cleanup. SSH coverage is provider/relay contract and fault-injection coverage only; it does not substitute for paired-server coverage. Live Windows, Linux, WSL, SSH, and physical paired-Linux hosts remain gaps. The isolated intent-owner ledger suite was removed. web-runtime-session.test.ts retains exact post-create handoff confirmation only; its previous fresh/resume presentation and publication-replay assertions are no longer current references. Those direct owner-partition, cap and RPC/focus alarms are lost; other agent-session evidence does not establish equivalence. Structured handoff and adopted-leaf focus references now point to their dedicated surviving fixtures. Mixed-version recovery retains actual old-host recovery followed by a new CLI tab; its unsupported/missing-evidence tables are removed. Orphan recovery retains in-flight adoption-conflict serialization only; previous topology/pruning and absence/adoption examples are removed. These removed projection, capability and adoption-shape alarms are lost; retained cases do not replace them. Audit1301: src/renderer/src/runtime/remote-runtime-session-tabs-inflight.test.ts reduced. Direct dedupe eviction/count and equal receipt-position sample loses authored alarm. No equivalent replacement coverage is claimed. Audit1308: src/renderer/src/runtime/web-session-tabs-sync-agent-handoff.test.ts removed. Exact provisional replacement and post-create exit confirmation handoff pipeline alarms disappear. No equivalent replacement coverage is claimed. Audit1313: src/main/runtime/terminal-orphan-topology.test.ts: Retain actual topology merge algorithms preserving disjoint subtrees and grafted/ambiguous shared anchors with independent expected trees. Remove duplicate leaf validator and empty/no-change passthrough examples. Lose basic validation and no-group/noop characterization; no renderer layout proof. Reduced selectors require fresh validation; prior full-suite receipts do not validate removed or changed coverage. No equivalent replacement or physical-provider claim. Audit1342: src/renderer/src/components/terminal-pane/pty-connection-completion-and-notification.test.ts reduced. Driver registration/import of a whole-deleted selected spec is removed; directly authored cases remain unchanged. No extra authored removal credit. No equivalent replacement coverage is claimed. Audit1383: src/main/runtime/orca-runtime-tests/worktree-native-chat-setup.spec.ts reduced. Lose command-list/receipt/default/background activation matrices whose provider spawn returns canned IDs. Retained test proves actual tab allocation separation, not terminal startup. No equivalent replacement coverage is claimed. Existing exact unaffected receipts and their platform/provider/budget claims remain scoped to unchanged selectors. Changed optional selectors have no new execution result. Audit1401: src/main/runtime/orca-runtime-tests/mobile-session-tabs-duplicate-pty-repair.spec.ts removed. Loses listing-on-already-repaired-data alarm; it never established runtime repair invocation. src/main/runtime/orca-runtime-tests/mobile-session-tabs-split-agent-tab.spec.ts removed. Loses actual mobile split sibling shell versus recorded-agent resume command alarms; no equivalent coverage asserted. src/main/runtime/orca-runtime-tests/worktree-native-chat-setup.spec.ts removed. Loses separate setup/startup tab result in that manually assembled path. src/main/runtime/orca-runtime.test.ts reduced. Driver registration/import of a whole-deleted selected spec is removed; directly authored cases remain unchanged. No extra authored removal credit. No equivalent replacement coverage is claimed. Existing exact unaffected receipts remain unchanged and apply only to their unchanged selectors. Changed optional selectors have no new execution result.", + "coverageNotes": "Audit5922 intentionally retires Gemini interrupt versus Codex navigation classification and command-finished cleanup arbitration under supplied status/transport; the retained completion wrapper loses exactly two finite arbitration cases while its other registration factories remain. These narrow alarms are lost without equivalent replacement. Remaining selectors/assertions and dated evidenceRuns retain their original scope; no fresh validation or whole-gate replacement claim. Preserve complete historical narratives and earlier knownGaps verbatim. Complete prior account retained verbatim: Audit5916 removes the entire local-worktree-creation-part-02.spec import from the retained runtime driver, intentionally losing the mocked exact-name create refusal when a selected PR matches a remote branch. The sole zero-auth terminal-handle registrar for another deleted suite is also retired, with no authored credit. Driver selectors retain only their narrowed import scope. Unchanged dated independent receipts are not equivalent replacement or fresh whole-gate validation. Complete prior account retained verbatim: Audit5901 removes only the mobile-creation-and-orchestration-part-03.spec import from the retained runtime driver. The fragment's missing-handle wait abort and waiter retirement on reload-exit alarms are intentionally lost. This is a conservative import-closure notice: named command filters may exclude those cases. Driver selectors remain; unchanged historical receipts retain their original scope and establish no fresh whole-gate pass or equivalent replacement. Complete prior account retained verbatim: Audit5896 removes only the paired-settings.spec and dispatch-mailbox-delivery.spec import lines from their retained runtime/mailbox drivers. Those imported suites and alarms are intentionally retired, without equivalent replacement. Driver selectors remain; unchanged dated receipts retain original scope and do not establish a new whole-gate import-closure pass. Complete prior account retained verbatim: Audit5706 narrows claimed-owner assertions to the two retained asynchronous registry cases; retired claims and the original object are preserved in knownGaps. No fresh validation or replacement coverage. Historical prior account (preserved verbatim): Audit5605 retires complete low-value suites src/renderer/src/runtime/hosted-terminals/recovery/web-session-terminal-orphan-recovery.test.ts. Intentionally lose serialization of newer convergence after an in-flight adoption conflict alarms. Reduced commands have no fresh gate evidence or equivalent replacement claim. Historical prior account follows: 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. Audit4352 deletes the whole mocked daemon router, session-owner resolver, degraded-provider, terminal-host CWD-readability and foreground-inspection suites plus the native-process-CWD fixture suite; recovery retains only public multi-pane proactive socket-death notification/remount. Intentionally lose retirement admission, stale-inventory/fenced-kill authority, attach-only re-resolution/absence, fast-exit routing, sleep CWD checkpoint/wake, diagnostic cancellation/shutdown and foreground census/session-change alarms. No equivalent replacement or fresh gate execution is claimed. Historical prior account (preserved verbatim): 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. 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. The Codex restart suite and exact command/testFiles/assertionRef are removed; its mock account-change/remote-pane restart alarms are intentionally lost. 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. Audit3368 retires the whole host-session-launch unit source, including host-authority/create/ensure/legacy/Kimi/refusal/draft/options/prompt/cancel/kill/shared-disconnect and passive-sleep output callback alarms, without equivalent replacement. Its unit command token and test-file entry retire. Five unrelated macOS receipts remain verbatim and keep only their original scope; no fresh changed-selector/runtime/provider/process/UI/mobile/mixed-version/cross-platform evidence is claimed. Audit3359 retires the whole create-handoff suite. Supplied disposition, late completion, close-callback and metadata-bookkeeping alarms are intentionally lost without equivalent replacement; the compound unit selector and test-file entry narrow accordingly. Five unrelated macOS receipts retain their original scope. No fresh runtime, process-deduplication, physical provider/network, historical-import, mobile, mixed-version or cross-platform validation is claimed. Audit 3301 removes the caller-chat-target precedence over host selection example from web-session-tabs-sync-focus-intent.test.ts. The snapshot-before-RPC replay and split-sibling-first exact-leaf focus cases remain unchanged and match the existing assertion reference. Preserve current selectors, assertion references, unrelated active receipts and complete archived history. These mocked state-composition survivors provide no equivalent replacement, rendered, native, network or fresh execution proof. Audit2694 source-only review: Remove14 authored/14 expanded cases in the renderer completion wrapper family, including the complete bell/query-reply/stale-input factory, without replacement. Retain29 authored/34 expanded cases with unchanged callback bodies. Three removals are the existing pending2203 overlap and must be adopted/count-reconciled once; eleven are fresh removals. No current-source runtime or gate execution is supplied by this packet; dated evidence retains its original source scope and does not validate the reduced factory bytes. No equivalent replacement, physical provider, mixed-version, mobile, rendered UI, cross-platform, soak or measured-performance result is claimed. The existing command and testFiles selector retain tests/pty-connection-completion-and-notification.test.ts; no wrapper-specific assertionRef is removed. Historical selector results do not validate its changed reachable factories. Historical prior account (preserved verbatim): Audit2709 removes src/renderer/src/runtime/web-session-tabs-sync/inventory/remote-runtime-session-tabs-inflight.test.ts: intentionally retire waiting out an older inventory and sharing a fresh post-operation request among concurrent callers. No equivalent replacement or fresh execution is claimed. Dated receipts remain historical evidence for their unchanged selectors only; they do not validate the reduced commands or full current gate. Historical prior account (preserved verbatim): Audit2133 current-parent preparation: Current reduced sources/selectors intentionally retire the alarms listed in knownGaps; prior dated runs and replacement claims do not validate the changed set. Historical prior account (preserved verbatim): Audit2095 current-parent preparation2126: Current reduced sources/selectors intentionally retire the alarms listed in knownGaps; prior dated runs and replacement claims do not validate the changed set. Historical prior account (preserved verbatim): Audit2090 (sources2088/2089): Current reduced suites intentionally retire the alarms listed in knownGaps; prior dated execution and replacement claims do not validate changed source bytes or selectors. Historical prior account (preserved verbatim): Audit2086 (sources2082/2083): Current reduced suites intentionally retire the alarms listed in knownGaps; prior dated execution and replacement claims do not validate changed source bytes or selectors. Historical prior account (preserved verbatim): Audit2076 (sources2073/2074): Intentionally retire these low-value alarms without replacement: src/main/runtime/orca-runtime-tests/terminal-handles-part-02.spec.ts: recovers a moved SSH pane through the tab it now sits in, not the one its lease froze; reports a plain expired orphan; does not report a pane whose only recent lease was superseded; does not report a pane whose only recent lease had its relay id recycled; picks the eligible orphan over a superseded predecessor that matches first; collects the same tabs the per-tab reader reports, in one sweep of the leases; reports no candidate when no lease names any of the worktree tabs. src/main/runtime/orca-runtime-tests/runtime-availability.spec.ts: starts unavailable with no authoritative window; reports the configured Windows terminal shell on status; reports floating workspace availability from settings on status; polls floating tabs with targeted PTY liveness and no repo/provider inventory; hydrates persisted tabs when the store cannot report repos; advertises browser screencast only when a renderer window is available; routes mobile Codex reset consumption through the account mutation coordinator; maps a definite pre-provider rejection into an authoritative current snapshot. Existing unrelated evidenceRuns retain their original scope; unchanged dated receipt objects do not validate changed source bytes or reduced selectors. No fresh gate execution or historical import-closure equivalence is claimed. Frozen current literal-import graph reaches these changed test bytes; unresolved local and computed edges remain debt, and current reachability is not historical execution or equivalent replacement evidence. Historical prior account (preserved verbatim): Audit2003: Delete the complete pure orphan-topology suite and its file membership; preserve the other selectors from its combined command after archiving the original command string. Lost alarms are synthetic current-layout preservation, one-anchor grafting and ambiguous-anchor appending examples. Do not transfer their ownership/topology scope to sibling suites. Preserve all5 independent historical receipts exactly. Changed-source prior results do not validate reduced-source bytes. No fresh execution, equivalent replacement, red/green, measured budget, soak, physical provider/PTY, rendered, live remote/mobile or cross-platform result is claimed. Historical prior account (preserved verbatim): Audit1983: Delete the mocked agent-session suite and its prospective selector and aliases. Retire all3 whole dated changed-selector receipts, preserving their original raw objects in historical gaps without transferring counts or durations. Preserve5 unrelated receipts. Changed-source prior results do not validate reduced-source bytes. No fresh execution, equivalent replacement, red/green, measured budget, soak, provider/PTY, rendered, live remote/mobile or cross-platform result is claimed. Historical prior account (preserved verbatim): Audit1931 (sources1928/1929): Partial agent-operation service suite retains only concurrent retry joining with changed-fingerprint conflict. Retire its complete three-title assertion object: old-owner legacy fallback before side effects, nested SSH Pi transcript refusal and completed/ambiguous physical-commit replay fences are no longer backed. Other probe/launch option/ledger/failure/remote-inventory examples disappear as detailed below. No actual provider spawn, live SSH or physical commit proof is retained by this source. Preserve meaningful remaining selectors/assertions and unchanged dated receipts within their original scope. Reduced selectors have no fresh gate execution evidence in this metadata packet. No equivalent replacement, physical watcher/PTY/provider, live SSH/remote/mobile, rendered, cross-platform, soak or measured-budget result is claimed. Historical prior account (preserved verbatim): Audit1911: The complete provider PTY-inspection mock suite is removed: missing-provider rejection, stale-PTY renderer unverifiable mapping, preserved supplied renderer failures, and supplied transport-loss mapping alarms are intentionally lost. No actual terminal teardown, daemon error or remote transport was exercised. Only the deleted explicit source tokens, testFile and whole assertionRef are removed. Meaningful remaining source selectors/assertions and unaffected dated receipts retain their original scope. No equivalent replacement, fresh reduced-gate, native/platform/provider, soak or measured-budget result is claimed. Historical prior account (preserved verbatim): Audit1627 removes low-value mocked daemon projections, scalar tables and duplicate terminal examples without equivalent replacement coverage. Per-source reviews record retained terminal content preservation, process ownership refusal and recovery boundaries together with injected/native/remote limits. Affected historical receipts are retired; gates without active current evidence are downgraded. Historical scope before this audit: Audit1623 removes low-value mocked daemon projections, scalar tables and duplicate terminal examples without equivalent replacement coverage. Per-source reviews record retained terminal content preservation, process ownership refusal and recovery boundaries together with injected/native/remote limits. Affected historical receipts are retired; gates without active current evidence are downgraded. Historical scope before this audit: Audit1495 intentionally deletes the orphan-owner suite: explicit owner/host predicate examples are retired; no equivalent replacement coverage or fresh result is claimed. Retained exact unchanged-source receipts remain the only current execution evidence. Reduced selectors have no fresh execution result. Audit1417 intentionally deletes src/renderer/src/components/terminal-pane/agent-completion-coordinator-pending-title-inspection.test.ts: Loses obsolete pending title process races, inspection failure suppression, explicit completion precedence and delayed remote inspection alarms. No equivalent replacement coverage or fresh result is claimed. Historical coverage account: Audit1342 changes referenced sources. Retained unchanged-source receipts apply only to their unchanged commands; the reduced selectors have no new execution result. Historical coverage account (not a current claim for changed sources): Audits1301 and1308 changes referenced sources. Retained unchanged-source receipts apply only to their unchanged commands; the reduced selectors have no new execution result. Historical coverage account (not a current claim for changed sources): Deterministic macOS tests cover controller claims, daemon and SSH/relay operation replay, mixed-version selection, runtime ownership, exact provisional handoff, durable terminal retirement, two independent viewer mirrors, guarded adoption of legacy live PTYs, and completion classification when either the outer remote transport or authoritative host/provider process inspection becomes unreachable. The adoption harness models v1.4.150 agent/setup/shell tabs, current-generation restart and reconnect, exact handle/incarnation/worktree/host checks, topology CAS, competing clients, split-pane/group restoration, WSL ownership, and SSH owner rejection. The secondary parity repro runs independent clients against one headless remote Orca runtime over encrypted pairing and a real daemon-backed PTY, with tokened fixture-process identity separated from unrelated Codex app-server startup probes. The automated primary topology runs an isolated headed macOS Orca desktop server plus a separate paired web client and proves viewer-local fresh/resume focus, exact legacy placement, writable PTYs, unrelated-terminal survival, and host/client cleanup. SSH coverage is provider/relay contract and fault-injection coverage only; it does not substitute for paired-server coverage. Live Windows, Linux, WSL, SSH, and physical paired-Linux hosts remain gaps. The isolated intent-owner ledger suite was removed. web-runtime-session.test.ts retains exact post-create handoff confirmation only; its previous fresh/resume presentation and publication-replay assertions are no longer current references. Those direct owner-partition, cap and RPC/focus alarms are lost; other agent-session evidence does not establish equivalence. Structured handoff and adopted-leaf focus references now point to their dedicated surviving fixtures. Mixed-version recovery retains actual old-host recovery followed by a new CLI tab; its unsupported/missing-evidence tables are removed. Orphan recovery retains in-flight adoption-conflict serialization only; previous topology/pruning and absence/adoption examples are removed. These removed projection, capability and adoption-shape alarms are lost; retained cases do not replace them. Audit1301: src/renderer/src/runtime/remote-runtime-session-tabs-inflight.test.ts reduced. Direct dedupe eviction/count and equal receipt-position sample loses authored alarm. No equivalent replacement coverage is claimed. Audit1308: src/renderer/src/runtime/web-session-tabs-sync-agent-handoff.test.ts removed. Exact provisional replacement and post-create exit confirmation handoff pipeline alarms disappear. No equivalent replacement coverage is claimed. Audit1313: src/main/runtime/terminal-orphan-topology.test.ts: Retain actual topology merge algorithms preserving disjoint subtrees and grafted/ambiguous shared anchors with independent expected trees. Remove duplicate leaf validator and empty/no-change passthrough examples. Lose basic validation and no-group/noop characterization; no renderer layout proof. Reduced selectors require fresh validation; prior full-suite receipts do not validate removed or changed coverage. No equivalent replacement or physical-provider claim. Audit1342: src/renderer/src/components/terminal-pane/pty-connection-completion-and-notification.test.ts reduced. Driver registration/import of a whole-deleted selected spec is removed; directly authored cases remain unchanged. No extra authored removal credit. No equivalent replacement coverage is claimed. Audit1383: src/main/runtime/orca-runtime-tests/worktree-native-chat-setup.spec.ts reduced. Lose command-list/receipt/default/background activation matrices whose provider spawn returns canned IDs. Retained test proves actual tab allocation separation, not terminal startup. No equivalent replacement coverage is claimed. Existing exact unaffected receipts and their platform/provider/budget claims remain scoped to unchanged selectors. Changed optional selectors have no new execution result. Audit1401: src/main/runtime/orca-runtime-tests/mobile-session-tabs-duplicate-pty-repair.spec.ts removed. Loses listing-on-already-repaired-data alarm; it never established runtime repair invocation. src/main/runtime/orca-runtime-tests/mobile-session-tabs-split-agent-tab.spec.ts removed. Loses actual mobile split sibling shell versus recorded-agent resume command alarms; no equivalent coverage asserted. src/main/runtime/orca-runtime-tests/worktree-native-chat-setup.spec.ts removed. Loses separate setup/startup tab result in that manually assembled path. src/main/runtime/orca-runtime.test.ts reduced. Driver registration/import of a whole-deleted selected spec is removed; directly authored cases remain unchanged. No extra authored removal credit. No equivalent replacement coverage is claimed. Existing exact unaffected receipts remain unchanged and apply only to their unchanged selectors. Changed optional selectors have no new execution result.", "motivatingLinks": [ "https://github.com/stablyai/orca/issues/8878", "https://github.com/stablyai/orca/issues/9151", @@ -6817,7 +6817,7 @@ "https://github.com/stablyai/orca/pull/10193" ], "invariant": "For every claim-capable execution route, one provider-session identity has at most one live PTY owner and one canonical host surface across concurrent clients, retries, reconnects, and stale publications. For paired structured fresh and resume requests, the authenticated owning runtime creates in background without a renderer window; activate=true focuses the exact requested leaf only on the requesting viewer, while activate=false changes no viewer focus. A live orphan may be adopted only when the controller proves its exact handle and incarnation, its worktree and host owner match, no competing visual owner exists, and a host topology CAS wins. A viewer may classify completion only from successful host/provider inspection or explicit lifecycle evidence; transport, handle, or provider unavailability remains unknown and breaks any consecutive-idle proof. A physical exit retires that exact incarnation durably so stale client state and host restart cannot recreate it. Mixed-version routes select the unchanged legacy request before any authority side effect or execution-owner-local filesystem access.", - "oracle": "Audit5916 removes the entire local-worktree-creation-part-02.spec import from the retained runtime driver, intentionally losing the mocked exact-name create refusal when a selected PR matches a remote branch. The sole zero-auth terminal-handle registrar for another deleted suite is also retired, with no authored credit. Driver selectors retain only their narrowed import scope. Unchanged dated independent receipts are not equivalent replacement or fresh whole-gate validation. Complete prior account retained verbatim: Audit5896 removes only the paired-settings.spec and dispatch-mailbox-delivery.spec import lines from their retained runtime/mailbox drivers. Those imported suites and alarms are intentionally retired, without equivalent replacement. Driver selectors remain; unchanged dated receipts retain original scope and do not establish a new whole-gate import-closure pass. Complete prior account retained verbatim: 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. 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. 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. The Codex restart suite and exact command/testFiles/assertionRef are removed; its mock account-change/remote-pane restart alarms are intentionally lost. 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. Audit3368 retires the whole host-session-launch unit source, including host-authority/create/ensure/legacy/Kimi/refusal/draft/options/prompt/cancel/kill/shared-disconnect and passive-sleep output callback alarms, without equivalent replacement. Its unit command token and test-file entry retire. Five unrelated macOS receipts remain verbatim and keep only their original scope; no fresh changed-selector/runtime/provider/process/UI/mobile/mixed-version/cross-platform evidence is claimed. Audit3359 retires the whole create-handoff suite. Supplied disposition, late completion, close-callback and metadata-bookkeeping alarms are intentionally lost without equivalent replacement; the compound unit selector and test-file entry narrow accordingly. Five unrelated macOS receipts retain their original scope. No fresh runtime, process-deduplication, physical provider/network, historical-import, mobile, mixed-version or cross-platform validation is claimed. Audit 3301 removes the caller-chat-target precedence over host selection example from web-session-tabs-sync-focus-intent.test.ts. The snapshot-before-RPC replay and split-sibling-first exact-leaf focus cases remain unchanged and match the existing assertion reference. Preserve current selectors, assertion references, unrelated active receipts and complete archived history. These mocked state-composition survivors provide no equivalent replacement, rendered, native, network or fresh execution proof. Audit2694 source-only review: Remove14 authored/14 expanded cases in the renderer completion wrapper family, including the complete bell/query-reply/stale-input factory, without replacement. Retain29 authored/34 expanded cases with unchanged callback bodies. Three removals are the existing pending2203 overlap and must be adopted/count-reconciled once; eleven are fresh removals. No current-source runtime or gate execution is supplied by this packet; dated evidence retains its original source scope and does not validate the reduced factory bytes. No equivalent replacement, physical provider, mixed-version, mobile, rendered UI, cross-platform, soak or measured-performance result is claimed. The existing command and testFiles selector retain tests/pty-connection-completion-and-notification.test.ts; no wrapper-specific assertionRef is removed. Historical selector results do not validate its changed reachable factories. Historical prior account (preserved verbatim): Audit2133 current-parent preparation: Current reduced sources/selectors intentionally retire the alarms listed in knownGaps; prior dated runs and replacement claims do not validate the changed set. Historical prior account (preserved verbatim): Audit2095 current-parent preparation2126: Current reduced sources/selectors intentionally retire the alarms listed in knownGaps; prior dated runs and replacement claims do not validate the changed set. Historical prior account (preserved verbatim): Audit2090 (sources2088/2089): Current reduced suites intentionally retire the alarms listed in knownGaps; prior dated execution and replacement claims do not validate changed source bytes or selectors. Historical prior account (preserved verbatim): Audit2086 (sources2082/2083): Current reduced suites intentionally retire the alarms listed in knownGaps; prior dated execution and replacement claims do not validate changed source bytes or selectors. Historical prior account (preserved verbatim): Audit2076 (sources2073/2074): Intentionally retire these low-value alarms without replacement: src/main/runtime/orca-runtime-tests/terminal-handles-part-02.spec.ts: recovers a moved SSH pane through the tab it now sits in, not the one its lease froze; reports a plain expired orphan; does not report a pane whose only recent lease was superseded; does not report a pane whose only recent lease had its relay id recycled; picks the eligible orphan over a superseded predecessor that matches first; collects the same tabs the per-tab reader reports, in one sweep of the leases; reports no candidate when no lease names any of the worktree tabs. src/main/runtime/orca-runtime-tests/runtime-availability.spec.ts: starts unavailable with no authoritative window; reports the configured Windows terminal shell on status; reports floating workspace availability from settings on status; polls floating tabs with targeted PTY liveness and no repo/provider inventory; hydrates persisted tabs when the store cannot report repos; advertises browser screencast only when a renderer window is available; routes mobile Codex reset consumption through the account mutation coordinator; maps a definite pre-provider rejection into an authoritative current snapshot. Existing unrelated evidenceRuns retain their original scope; unchanged dated receipt objects do not validate changed source bytes or reduced selectors. No fresh gate execution or historical import-closure equivalence is claimed. Frozen current literal-import graph reaches these changed test bytes; unresolved local and computed edges remain debt, and current reachability is not historical execution or equivalent replacement evidence. Historical prior account (preserved verbatim): Audit2003: Delete the complete pure orphan-topology suite and its file membership; preserve the other selectors from its combined command after archiving the original command string. Lost alarms are synthetic current-layout preservation, one-anchor grafting and ambiguous-anchor appending examples. Do not transfer their ownership/topology scope to sibling suites. Preserve all5 independent historical receipts exactly. Changed-source prior results do not validate reduced-source bytes. No fresh execution, equivalent replacement, red/green, measured budget, soak, physical provider/PTY, rendered, live remote/mobile or cross-platform result is claimed. Historical prior account (preserved verbatim): Audit1983: Delete the mocked agent-session suite and its prospective selector and aliases. Retire all3 whole dated changed-selector receipts, preserving their original raw objects in historical gaps without transferring counts or durations. Preserve5 unrelated receipts. Changed-source prior results do not validate reduced-source bytes. No fresh execution, equivalent replacement, red/green, measured budget, soak, provider/PTY, rendered, live remote/mobile or cross-platform result is claimed. Historical prior account (preserved verbatim): Audit1931 (sources1928/1929): Partial agent-operation service suite retains only concurrent retry joining with changed-fingerprint conflict. Retire its complete three-title assertion object: old-owner legacy fallback before side effects, nested SSH Pi transcript refusal and completed/ambiguous physical-commit replay fences are no longer backed. Other probe/launch option/ledger/failure/remote-inventory examples disappear as detailed below. No actual provider spawn, live SSH or physical commit proof is retained by this source. Preserve meaningful remaining selectors/assertions and unchanged dated receipts within their original scope. Reduced selectors have no fresh gate execution evidence in this metadata packet. No equivalent replacement, physical watcher/PTY/provider, live SSH/remote/mobile, rendered, cross-platform, soak or measured-budget result is claimed. Historical prior account (preserved verbatim): Audit1911: The complete provider PTY-inspection mock suite is removed: missing-provider rejection, stale-PTY renderer unverifiable mapping, preserved supplied renderer failures, and supplied transport-loss mapping alarms are intentionally lost. No actual terminal teardown, daemon error or remote transport was exercised. Only the deleted explicit source tokens, testFile and whole assertionRef are removed. Meaningful remaining source selectors/assertions and unaffected dated receipts retain their original scope. No equivalent replacement, fresh reduced-gate, native/platform/provider, soak or measured-budget result is claimed. Historical prior account (preserved verbatim): Retained exact unchanged-source receipts remain the only current execution evidence. Reduced selectors have no fresh execution result. Historical pre-audit oracle account for changed sources: Existing exact unchanged-selector receipts remain the only current execution evidence. Changed source selectors have no fresh execution result. Historical prior-source oracle account: The retained unchanged-source receipts are the only current execution evidence; reduced-source assertions await validation. Historical oracle account (not a current claim for changed sources): The retained unchanged-source receipts are the only current execution evidence; reduced-source assertions await validation. Historical oracle account (not a current claim for changed sources): Race independent clients and repeated operation IDs, then assert one physical spawn and one canonical PTY/surface; inject exit-before-reply, provider disconnect, conflicting claim scope, old daemon/relay capabilities, reused handles, stale incarnations, owner mismatch, and topology revision conflict; assert safe adoption or explicit failure without a second spawn or wrong-process attachment. Run fresh/resume with activate true/false against an isolated headed desktop host and a separate paired client, then against isolated headless serve: assert host presentation stays background, only the requesting viewer focuses the exact leaf, inactive calls preserve client/DOM focus, a same-version publication replay cannot lose focus intent, and sibling-first split publication cannot consume exact-leaf intent. Restore legacy split panes and groups beside a newer host-owned tab, preserving exact predecessor/new/successor order, output, input, resize, titles, tab/leaf identity, active group, and multi-client convergence. For completion, drive a known running agent through outer transport loss, authoritative provider rejection, reconnect, explicit stop, real exit status, and successful hook completion; assert unavailable evidence never dispatches completion and two fresh authoritative idle samples are required after the gap. After exact exit, assert terminal and tab listings omit the surface, a stale publication cannot restore it, restart cannot resurrect it, exact tokened fixture PIDs are dead, and unrelated tabs/processes survive until scoped cleanup.", + "oracle": "Audit5922 intentionally retires Gemini interrupt versus Codex navigation classification and command-finished cleanup arbitration under supplied status/transport; the retained completion wrapper loses exactly two finite arbitration cases while its other registration factories remain. These narrow alarms are lost without equivalent replacement. Remaining selectors/assertions and dated evidenceRuns retain their original scope; no fresh validation or whole-gate replacement claim. Preserve complete historical narratives and earlier knownGaps verbatim. Complete prior account retained verbatim: Audit5916 removes the entire local-worktree-creation-part-02.spec import from the retained runtime driver, intentionally losing the mocked exact-name create refusal when a selected PR matches a remote branch. The sole zero-auth terminal-handle registrar for another deleted suite is also retired, with no authored credit. Driver selectors retain only their narrowed import scope. Unchanged dated independent receipts are not equivalent replacement or fresh whole-gate validation. Complete prior account retained verbatim: Audit5896 removes only the paired-settings.spec and dispatch-mailbox-delivery.spec import lines from their retained runtime/mailbox drivers. Those imported suites and alarms are intentionally retired, without equivalent replacement. Driver selectors remain; unchanged dated receipts retain original scope and do not establish a new whole-gate import-closure pass. Complete prior account retained verbatim: 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. 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. 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. The Codex restart suite and exact command/testFiles/assertionRef are removed; its mock account-change/remote-pane restart alarms are intentionally lost. 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. Audit3368 retires the whole host-session-launch unit source, including host-authority/create/ensure/legacy/Kimi/refusal/draft/options/prompt/cancel/kill/shared-disconnect and passive-sleep output callback alarms, without equivalent replacement. Its unit command token and test-file entry retire. Five unrelated macOS receipts remain verbatim and keep only their original scope; no fresh changed-selector/runtime/provider/process/UI/mobile/mixed-version/cross-platform evidence is claimed. Audit3359 retires the whole create-handoff suite. Supplied disposition, late completion, close-callback and metadata-bookkeeping alarms are intentionally lost without equivalent replacement; the compound unit selector and test-file entry narrow accordingly. Five unrelated macOS receipts retain their original scope. No fresh runtime, process-deduplication, physical provider/network, historical-import, mobile, mixed-version or cross-platform validation is claimed. Audit 3301 removes the caller-chat-target precedence over host selection example from web-session-tabs-sync-focus-intent.test.ts. The snapshot-before-RPC replay and split-sibling-first exact-leaf focus cases remain unchanged and match the existing assertion reference. Preserve current selectors, assertion references, unrelated active receipts and complete archived history. These mocked state-composition survivors provide no equivalent replacement, rendered, native, network or fresh execution proof. Audit2694 source-only review: Remove14 authored/14 expanded cases in the renderer completion wrapper family, including the complete bell/query-reply/stale-input factory, without replacement. Retain29 authored/34 expanded cases with unchanged callback bodies. Three removals are the existing pending2203 overlap and must be adopted/count-reconciled once; eleven are fresh removals. No current-source runtime or gate execution is supplied by this packet; dated evidence retains its original source scope and does not validate the reduced factory bytes. No equivalent replacement, physical provider, mixed-version, mobile, rendered UI, cross-platform, soak or measured-performance result is claimed. The existing command and testFiles selector retain tests/pty-connection-completion-and-notification.test.ts; no wrapper-specific assertionRef is removed. Historical selector results do not validate its changed reachable factories. Historical prior account (preserved verbatim): Audit2133 current-parent preparation: Current reduced sources/selectors intentionally retire the alarms listed in knownGaps; prior dated runs and replacement claims do not validate the changed set. Historical prior account (preserved verbatim): Audit2095 current-parent preparation2126: Current reduced sources/selectors intentionally retire the alarms listed in knownGaps; prior dated runs and replacement claims do not validate the changed set. Historical prior account (preserved verbatim): Audit2090 (sources2088/2089): Current reduced suites intentionally retire the alarms listed in knownGaps; prior dated execution and replacement claims do not validate changed source bytes or selectors. Historical prior account (preserved verbatim): Audit2086 (sources2082/2083): Current reduced suites intentionally retire the alarms listed in knownGaps; prior dated execution and replacement claims do not validate changed source bytes or selectors. Historical prior account (preserved verbatim): Audit2076 (sources2073/2074): Intentionally retire these low-value alarms without replacement: src/main/runtime/orca-runtime-tests/terminal-handles-part-02.spec.ts: recovers a moved SSH pane through the tab it now sits in, not the one its lease froze; reports a plain expired orphan; does not report a pane whose only recent lease was superseded; does not report a pane whose only recent lease had its relay id recycled; picks the eligible orphan over a superseded predecessor that matches first; collects the same tabs the per-tab reader reports, in one sweep of the leases; reports no candidate when no lease names any of the worktree tabs. src/main/runtime/orca-runtime-tests/runtime-availability.spec.ts: starts unavailable with no authoritative window; reports the configured Windows terminal shell on status; reports floating workspace availability from settings on status; polls floating tabs with targeted PTY liveness and no repo/provider inventory; hydrates persisted tabs when the store cannot report repos; advertises browser screencast only when a renderer window is available; routes mobile Codex reset consumption through the account mutation coordinator; maps a definite pre-provider rejection into an authoritative current snapshot. Existing unrelated evidenceRuns retain their original scope; unchanged dated receipt objects do not validate changed source bytes or reduced selectors. No fresh gate execution or historical import-closure equivalence is claimed. Frozen current literal-import graph reaches these changed test bytes; unresolved local and computed edges remain debt, and current reachability is not historical execution or equivalent replacement evidence. Historical prior account (preserved verbatim): Audit2003: Delete the complete pure orphan-topology suite and its file membership; preserve the other selectors from its combined command after archiving the original command string. Lost alarms are synthetic current-layout preservation, one-anchor grafting and ambiguous-anchor appending examples. Do not transfer their ownership/topology scope to sibling suites. Preserve all5 independent historical receipts exactly. Changed-source prior results do not validate reduced-source bytes. No fresh execution, equivalent replacement, red/green, measured budget, soak, physical provider/PTY, rendered, live remote/mobile or cross-platform result is claimed. Historical prior account (preserved verbatim): Audit1983: Delete the mocked agent-session suite and its prospective selector and aliases. Retire all3 whole dated changed-selector receipts, preserving their original raw objects in historical gaps without transferring counts or durations. Preserve5 unrelated receipts. Changed-source prior results do not validate reduced-source bytes. No fresh execution, equivalent replacement, red/green, measured budget, soak, provider/PTY, rendered, live remote/mobile or cross-platform result is claimed. Historical prior account (preserved verbatim): Audit1931 (sources1928/1929): Partial agent-operation service suite retains only concurrent retry joining with changed-fingerprint conflict. Retire its complete three-title assertion object: old-owner legacy fallback before side effects, nested SSH Pi transcript refusal and completed/ambiguous physical-commit replay fences are no longer backed. Other probe/launch option/ledger/failure/remote-inventory examples disappear as detailed below. No actual provider spawn, live SSH or physical commit proof is retained by this source. Preserve meaningful remaining selectors/assertions and unchanged dated receipts within their original scope. Reduced selectors have no fresh gate execution evidence in this metadata packet. No equivalent replacement, physical watcher/PTY/provider, live SSH/remote/mobile, rendered, cross-platform, soak or measured-budget result is claimed. Historical prior account (preserved verbatim): Audit1911: The complete provider PTY-inspection mock suite is removed: missing-provider rejection, stale-PTY renderer unverifiable mapping, preserved supplied renderer failures, and supplied transport-loss mapping alarms are intentionally lost. No actual terminal teardown, daemon error or remote transport was exercised. Only the deleted explicit source tokens, testFile and whole assertionRef are removed. Meaningful remaining source selectors/assertions and unaffected dated receipts retain their original scope. No equivalent replacement, fresh reduced-gate, native/platform/provider, soak or measured-budget result is claimed. Historical prior account (preserved verbatim): Retained exact unchanged-source receipts remain the only current execution evidence. Reduced selectors have no fresh execution result. Historical pre-audit oracle account for changed sources: Existing exact unchanged-selector receipts remain the only current execution evidence. Changed source selectors have no fresh execution result. Historical prior-source oracle account: The retained unchanged-source receipts are the only current execution evidence; reduced-source assertions await validation. Historical oracle account (not a current claim for changed sources): The retained unchanged-source receipts are the only current execution evidence; reduced-source assertions await validation. Historical oracle account (not a current claim for changed sources): Race independent clients and repeated operation IDs, then assert one physical spawn and one canonical PTY/surface; inject exit-before-reply, provider disconnect, conflicting claim scope, old daemon/relay capabilities, reused handles, stale incarnations, owner mismatch, and topology revision conflict; assert safe adoption or explicit failure without a second spawn or wrong-process attachment. Run fresh/resume with activate true/false against an isolated headed desktop host and a separate paired client, then against isolated headless serve: assert host presentation stays background, only the requesting viewer focuses the exact leaf, inactive calls preserve client/DOM focus, a same-version publication replay cannot lose focus intent, and sibling-first split publication cannot consume exact-leaf intent. Restore legacy split panes and groups beside a newer host-owned tab, preserving exact predecessor/new/successor order, output, input, resize, titles, tab/leaf identity, active group, and multi-client convergence. For completion, drive a known running agent through outer transport loss, authoritative provider rejection, reconnect, explicit stop, real exit status, and successful hook completion; assert unavailable evidence never dispatches completion and two fresh authoritative idle samples are required after the gap. After exact exit, assert terminal and tab listings omit the surface, a stale publication cannot restore it, restart cannot resurrect it, exact tokened fixture PIDs are dead, and unrelated tabs/processes survive until scoped cleanup.", "commands": [ "pnpm exec vitest run --config config/vitest.config.ts src/renderer/src/runtime/web-session-tabs-sync/navigation/web-session-tabs-sync-focus-intent.test.ts", "pnpm exec vitest run --config config/vitest.config.ts src/shared/agent-session/lifecycle/leases/claimed-agent-pty-owner.test.ts src/main/daemon/providers/adapter/testing/daemon-pty-adapter.test.ts src/main/runtime/session-construction/agent-session/orca-runtime-agent-session-operation.test.ts src/main/runtime/session-construction/agent-session/remote-agent-session-host-authority.integration.test.ts src/main/runtime/terminal/surface/orca-runtime-terminal-retirement.test.ts", @@ -7077,7 +7077,8 @@ "Audit5706 qualifies the reduced claimed-agent-pty-owner selector after5701: retain only late-liveness released-generation adoption refusal and preservation of an in-flight reservation during reconciliation. Intentionally retire same-identity other-worktree conflict, stale-release generation, already-exited spawn, conflict convergence, authoritative omission and reused-PTY replacement alarms. No equivalent replacement or fresh runtime, physical PTY, mixed-version, native, mobile or cross-platform evidence is claimed. Existing commands/testFiles and dated receipt objects remain exact and retain only their historical scopes. Original active assertion object preserved verbatim: {\n \"file\": \"src/shared/claimed-agent-pty-owner.test.ts\",\n \"assertions\": [\n \"concurrent exact claims spawn once and later callers adopt the canonical owner\",\n \"same identity in another worktree conflicts and cannot be found as the current scope's owner\",\n \"generation-guarded exit and authoritative reconciliation cannot retire a replacement owner\"\n ]\n }", "Audit5896 removes only the paired-settings.spec and dispatch-mailbox-delivery.spec import lines from their retained runtime/mailbox drivers. Those imported suites and alarms are intentionally retired, without equivalent replacement. Driver selectors remain; unchanged dated receipts retain original scope and do not establish a new whole-gate import-closure pass. ", "Audit5901 removes only the mobile-creation-and-orchestration-part-03.spec import from the retained runtime driver. The fragment's missing-handle wait abort and waiter retirement on reload-exit alarms are intentionally lost. This is a conservative import-closure notice: named command filters may exclude those cases. Driver selectors remain; unchanged historical receipts retain their original scope and establish no fresh whole-gate pass or equivalent replacement. ", - "Audit5916 removes the entire local-worktree-creation-part-02.spec import from the retained runtime driver, intentionally losing the mocked exact-name create refusal when a selected PR matches a remote branch. The sole zero-auth terminal-handle registrar for another deleted suite is also retired, with no authored credit. Driver selectors retain only their narrowed import scope. Unchanged dated independent receipts are not equivalent replacement or fresh whole-gate validation. " + "Audit5916 removes the entire local-worktree-creation-part-02.spec import from the retained runtime driver, intentionally losing the mocked exact-name create refusal when a selected PR matches a remote branch. The sole zero-auth terminal-handle registrar for another deleted suite is also retired, with no authored credit. Driver selectors retain only their narrowed import scope. Unchanged dated independent receipts are not equivalent replacement or fresh whole-gate validation. ", + "Audit5922 intentionally retires Gemini interrupt versus Codex navigation classification and command-finished cleanup arbitration under supplied status/transport; the retained completion wrapper loses exactly two finite arbitration cases while its other registration factories remain. These narrow alarms are lost without equivalent replacement. Remaining selectors/assertions and dated evidenceRuns retain their original scope; no fresh validation or whole-gate replacement claim. Preserve complete historical narratives and earlier knownGaps verbatim." ], "demotionRule": "Keep experimental or demote if the focused gate flakes without a product or harness bug, if a retry can physically spawn twice, if a stale exit/publication can replace or resurrect a terminal, or if mixed-version fallback occurs after an authority side effect." }, @@ -7887,20 +7888,20 @@ "providers": ["paired-runtime", "ssh"], "coveredPlatforms": ["macos"], "coveredProviders": [], - "coverageNotes": "Audit5916 removes the entire local-worktree-creation-part-02.spec import from the retained runtime driver, intentionally losing the mocked exact-name create refusal when a selected PR matches a remote branch. The sole zero-auth terminal-handle registrar for another deleted suite is also retired, with no authored credit. Driver selectors retain only their narrowed import scope. Unchanged dated independent receipts are not equivalent replacement or fresh whole-gate validation. Complete prior account retained verbatim: Audit5901 removes only the mobile-creation-and-orchestration-part-03.spec import from the retained runtime driver. The fragment's missing-handle wait abort and waiter retirement on reload-exit alarms are intentionally lost. This is a conservative import-closure notice: named command filters may exclude those cases. Driver selectors remain; unchanged historical receipts retain their original scope and establish no fresh whole-gate pass or equivalent replacement. Complete prior account retained verbatim: Audit5896 removes only the paired-settings.spec and dispatch-mailbox-delivery.spec import lines from their retained runtime/mailbox drivers. Those imported suites and alarms are intentionally retired, without equivalent replacement. Driver selectors remain; unchanged dated receipts retain original scope and do not establish a new whole-gate import-closure pass. Complete prior account retained verbatim: Audit5879 retires the entire cold-parking hook suite and its stale exemption/park-set and unnecessary recomputation alarms. Remaining selectors are not equivalent replacement coverage; unchanged independent dated receipts retain their original scope and do not validate reduced commands. Historical prior account preserved verbatim: Audit5772 companion to audit5768: Retire the whole hidden-view parking policy suite. Direct oldest/cap/TTL/last-active worktree ranking and equal-hidden-time tab activation-order alarms are intentionally lost without equivalent replacement. Narrow one compound unit command and remove the parking testFiles entry. Physical parking/restoration/stream-budget selectors and assertions remain unchanged at their own exact scope; they are not certified as replacements. Complete dated evidenceRuns and unrelated selectors/assertions are unchanged; none selects these retired suites and none validates the narrowed command. No fresh execution, current import reachability, replacement coverage or native/platform/remote result is claimed. Complete prior account preserved verbatim below as historical, including any older then-retained coverage claim: Audit5571 removes the entire unrelated-PTY mobile heartbeat callback suite and its active selectors; its bookkeeping alarm is intentionally lost without equivalent replacement or fresh runtime evidence. Fourteen unrelated dated receipts retain their exact original scopes. Historical account follows: Audit5534 removes the whole last-active retention TTL selector suite (one authored/finite case). Its absolute-TTL and inside-boundary alarm is intentionally lost without equivalent replacement or fresh execution. Active command/file selectors drop only that suite; historical receipts remain at their original scope. 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. 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. 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. 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. The decorative fanout suite retains only real OSC9999 ingestion through runtime/title heartbeat/viewer past the stale boundary, preserving stateStartedAt and clearing expired prompt metadata. Spinner volume/zero-work inventories, Pi/Grok frame tables, rich-status and foreground-reset examples are retired. Existing receipts for separate paired-terminal sources retain their original scopes. 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. 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. Audit3342 removes three supplied activation/inventory fallback and same-handle retry examples; their fallback/retry alarms are intentionally lost without equivalent replacement. The exact mounted-HUB pending old-stream-end versus replacement-snapshot registration and its assertion remain. Unrelated dated macOS receipts retain only their original scope; no fresh runtime, provider, performance, mobile, mixed-version or cross-platform validation is claimed. NEXT46 terminal-owner layout and whole-case policy: src/renderer/src/components/terminal-pane/pty-connection/tests/pty-connection-hidden-replay.test.ts, src/renderer/src/components/terminal-pane/pty-connection/tests/pty-connection-visibility-and-exit.test.ts, src/renderer/src/runtime/hosted-terminals/streams/remote-runtime-terminal-stall-recovery.test.ts. Complete retired/reduced selectors lose their listed alarms; retained cases have no transferred historical pass or equivalent replacement coverage. Unaffected dated receipts retain only their original exact scopes. This metadata edit is not fresh execution evidence. Historical prior account (preserved verbatim): Audit3326 adopts reconciled source audit3324 and intentionally retires these low-value examples and their regression alarms: restarts only the stream whose renderer delivery credit never settles — An unreturned renderer delivery credit stalls only its stream, leaving healthy sibling/shared transport alive. Fake-clock deadline plus real multiplexer unsubscribe isolates recovery ownership.; probes then restarts a stream when an entered command receives no frames — Entered command produces no output; actual multiplexer must probe then close only its stalled stream after probe timeout. Distinct response liveness from parser credit.; establishes a probe baseline before recovering an unsequenced stream — 142-line manual five-probe baseline/regression sequence derives request IDs from encoded mock traffic and checks repeated no-close/close choreography. Oversized algorithm/state-machine example; no actual renderer/host command or recovery delivery. Retires unsequenced/unchanged/regressed baseline classification alarms.. Retained tests do not replace these alarms. Dated unrelated evidence remains scoped to its original execution; no historical source/import-closure equivalence, fresh execution, real network/provider/SSH, rendered UI, mobile, mixed-version or cross-platform validation is claimed. Audit 3318 reduces remote-runtime-pty-transport-unpublished-host-graph.test.ts, retiring its direct published-empty-graph omission-to-pane-exit alarm. The unchanged bounded unpublished-frame/pushed-recovery and stale-handle park/manual-retry cases are narrower, not equivalent replacements. Both complete three-case Linux receipts dated 2026-11-04 are archived as historical, including source heads; they do not validate this reduced selector. Remaining fourteen active receipts are macOS only. No fresh gate, provider, rendered, mobile, mixed-version, cross-platform, soak or measured-budget validation is claimed. 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. The direct side-effect-facts selector retains six cases: replay exclusion, live sequence handling, stale disposer ownership, one handoff drain, drain-before-snapshot, and stale replacement-snapshot refusal. Successful current-entry snapshot application is not witnessed by the retained snapshot case. 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. Audit2162: Reduced inventory-authority source intentionally loses the examples recorded in knownGaps; historical execution is not validation of changed bytes. Historical prior account (preserved verbatim): Audit2133 current-parent preparation: Current reduced sources/selectors intentionally retire the alarms listed in knownGaps; prior dated runs and replacement claims do not validate the changed set. Historical prior account (preserved verbatim): Audit2095 current-parent preparation2126: Current reduced sources/selectors intentionally retire the alarms listed in knownGaps; prior dated runs and replacement claims do not validate the changed set. Historical prior account (preserved verbatim): Audit2090 (sources2088/2089): Current reduced suites intentionally retire the alarms listed in knownGaps; prior dated execution and replacement claims do not validate changed source bytes or selectors. Historical prior account (preserved verbatim): Audit2086 (sources2082/2083): Current reduced suites intentionally retire the alarms listed in knownGaps; prior dated execution and replacement claims do not validate changed source bytes or selectors. Historical prior account (preserved verbatim): Audit2076 (sources2073/2074): Intentionally retire these low-value alarms without replacement: src/main/runtime/orca-runtime-tests/terminal-handles-part-02.spec.ts: recovers a moved SSH pane through the tab it now sits in, not the one its lease froze; reports a plain expired orphan; does not report a pane whose only recent lease was superseded; does not report a pane whose only recent lease had its relay id recycled; picks the eligible orphan over a superseded predecessor that matches first; collects the same tabs the per-tab reader reports, in one sweep of the leases; reports no candidate when no lease names any of the worktree tabs. src/main/runtime/orca-runtime-tests/runtime-availability.spec.ts: starts unavailable with no authoritative window; reports the configured Windows terminal shell on status; reports floating workspace availability from settings on status; polls floating tabs with targeted PTY liveness and no repo/provider inventory; hydrates persisted tabs when the store cannot report repos; advertises browser screencast only when a renderer window is available; routes mobile Codex reset consumption through the account mutation coordinator; maps a definite pre-provider rejection into an authoritative current snapshot. Existing unrelated evidenceRuns retain their original scope; unchanged dated receipt objects do not validate changed source bytes or reduced selectors. No fresh gate execution or historical import-closure equivalence is claimed. Frozen current literal-import graph reaches these changed test bytes; unresolved local and computed edges remain debt, and current reachability is not historical execution or equivalent replacement evidence. Historical prior account (preserved verbatim): Audit2003: Remove SSH/absent-inventory attach refusal, later-subscriber retry, no-view adoption/takeback, provider-tail/unknown-read projections, failed-keystroke retry and simpler loss reattach examples. Keep the existing-subscriber inventory-ready retry alias only at its retained callback, plus retained held-input cancellation/replacement and overlapping attach/loss fences. The inventory driver also loses the whole empty-worktree-publication registration and folder-host/unverifiable scalar examples. Retire the entire dated10-case attach receipt; retain16 independent receipts only in their original scopes. No retained-memory or real-daemon measurement follows from supplied provider inventories. Changed-source prior results do not validate reduced-source bytes. No fresh execution, equivalent replacement, red/green, measured budget, soak, physical provider/PTY, rendered, live remote/mobile or cross-platform result is claimed. Historical prior account (preserved verbatim): Audit1991: Remove initial-snapshot sequence-domain, limited-tail/truncation and unknown-output-sequence aliases whose callbacks are removed. The source retains partial-chunk replay and requested-snapshot retry/admission at supplied snapshot/data seams, not equivalent replacement or measured retained-memory proof. Preserve the existing stream/pending-wait capacity aliases only to their retained owning multiplex callbacks with supplied PTY resolutions. Removing the sibling-PTY heartbeat dedup work-count sample does not establish a new decorative fanout budget; the unrelated-PTY cancellation fence survives. Preserve17 unrelated dated receipts. 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: Remove the reasonless-close selector and narrow census aliases to actual retained runtime and injected-inventory callbacks. The removed synthetic census-dedup and isolated pre-boundary timing cases receive no replacement credit; preserve17 unrelated dated 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): Audit1939 (sources1934/1935): Delete the synthetic watcher-synchronization and partial-reconciliation suites. Retire all affected host-fact, capability-owner, activation-residue and retention-cap aliases because the remaining callbacks do not establish those full claims. Keep exact local hook/timer, byte-stream side effects, exit/disposal, scroll-intent cleanup and deterministic local rank/TTL progression callbacks within their mocked-host scope. No physical paired-host retention, resource budget or equivalent replacement evidence is assigned. The generic broad test command remains a runnable discovery command, never a dated execution receipt. 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): Audit1931 (sources1928/1929): Delete the complete hook-agent-status projection suite and its two behavioral assertion aliases. Supplied stored hook/title/resume/staleness/rename/question/generation/PTY-retirement/snapshot-version projections are intentionally lost. The separate osc-status-scan gate mentions this source only in existing historical notes and receives no mutation. No measured hidden-output retention, CPU/RSS or resource budget result is claimed by the deleted source or this audit. 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): Module ownership cleanup retires the modeled cold-park private watcher/render/work-count suites under the current test policy. Their assertions are no longer active evidence. Retained lifecycle tests and headed/headless journeys do not establish equivalent coverage for those removed harness alarms. 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: Retained exact unchanged-source receipts remain the only current execution evidence. Reduced selectors have no fresh execution result. Audit1417 intentionally deletes src/renderer/src/components/terminal-pane/pty-connection-hidden-tui-snapshot-replay.spec.ts: Loses rich hidden snapshot sequence replay/grid resize and forced repaint after hidden snapshot alarms, including live-trigger deduplication. deletes src/renderer/src/components/terminal-pane/terminal-cold-park-verdict-loop.test.tsx: Loses modeled React oscillation alarm; real pane/watchers are not exercised. deletes src/renderer/src/runtime/remote-runtime-terminal-parse-backpressure.test.ts: Loses delayed credit until parsing, malformed frame/unknown stream handling, discarded transformed output recovery and failed ACK rearm alarms. No equivalent replacement coverage or fresh result is claimed. Historical coverage account: Audit1412 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 response-after-manual-disconnect example. Its distinct in-flight response fencing alarm is lost; retained queued-call disconnect tests are not an equivalent replacement. Historical commands and results remain historical. Deterministic headed macOS runs launch an isolated Orca desktop server and a separate paired web client. A byte-identical headless run uses an isolated `orca serve` host. Both create six real paired host PTYs with bounded high-output scrollback, prove sustained output while all six client xterms are warm-mounted but hidden causes zero renderer scheduler work, then drive 180 timed real-PTY spinner frames through a second production `session.tabs.subscribeAll` transport and the real Zustand store. Each worktree must publish and apply only its exact initial-working and final-idle titles. Both topologies ordinary-park five xterms without enabling the lossy retention budget, assert bounded cells/heap/timer lag, then restore the bounded authoritative tail exactly once on the original PTY including output produced while parked and continued input/output. The headed oracle additionally keeps every remote target workspace and terminal unmounted in the host renderer before and after client recovery. Production-parity React contracts reproduce and remove the independent cold-park watcher/title feedback loop, including memo-cache discard, StrictMode cleanup replay, detached split-PTY replacement, and the zero-park fast path. A deterministic cross-boundary contract drives 24 real PTY trackers in distinct worktrees through 2,880 decorative spinner and bare-native redraw chunks and counts host publications, serialized bytes, renderer apply calls, and store mutations while preserving exact per-PTY raw chunks and per-worktree semantic transitions. Fake-clock continuation beyond the 30-minute stale boundary requires one deduplicated refresh per worktree every 15 minutes, globally spaced by at least 50 ms, with every mirrored working status still fresh. Exact-identical Pi plus rotating normalized Pi/Grok frames renew coarse working/permission state; rich prompt/tool/question fields retain their original 30-minute lease, and `stateStartedAt`/acknowledgement identity remain stable across title/hook source swaps. A separate headed desktop-client journey relaunches the host main process while retaining the daemon and a daemon-backgrounded PTY, then requires first-observation foreground sync and continued input/output on the same PTY. Unit coverage keeps layout versions out of snapshot output high-waters when a restored snapshot has no output sequence and retries an existing subscriber only after authoritative provider inventory proves the retained PTY exists. Separate headed/headless ACK-starvation tests recover one stalled stream without replacing its PTY. A headed output-drop oracle proves a successful snapshot probe cannot certify a stale live stream when the authoritative PTY sequence advanced beyond the client high-water. Unit coverage requires an unsequenced client to establish a first-probe baseline, remain attached at the same sequence, and recover only after a later probe advances. A capability-disabled run proves legacy hosts retain the prior lossy limit/TTL fallback. Unit tests cover exact-owner capability routing, raw-stream release, singleton side-effect facts with timed handoff cleanup, 64 simultaneous synthetic-title sources with zero decorative client events after convergence, per-client late-subscribe recovery, semantic bell/title transitions, local animation-frame preservation, legacy no-output-pause delivery gating with exact snapshot restore, provider-authoritative snapshots, 128 active streams plus retry after a 129th-stream capacity rejection, capacity-pressure backoff, full split-leaf remint reconciliation, truncation, and manual-disconnect queue fencing. Linux, Windows, live SSH, and production-scale paired hosts remain gaps. The audit removed the E2E parking override/debug-handle suite. Override exposure guards, delay/retention independence, TTL filtering and debug-handle forwarding alarms are lost. Retained real parking journeys do not establish equivalent test-harness configuration coverage. The test-value audit removes separate responsive-stream, intervening-control-frame and capacity-error classification examples. Retained multiplexer checks use fake clocks and captured transport callbacks; their per-stream isolation, deadline and probe-baseline assertions do not prove an actual host restart or equivalent replacement coverage. Historical run commands and results remain historical. The test-value audit removes the standalone retained/live metadata projection and additive-preference negative example from runtime-client-events.test.ts. Its remaining case checks partial-authority event admission through a captured callback; it does not establish full-pair projection, actual peer delivery or equivalent replacement coverage. Historical commands and results remain historical. The isolated accepted-handle-events observer suite is removed. Its runtime/worktree/pane membership, once-only delivery and listener-release ledger alarms are lost. Live hidden-retention evidence does not establish equivalent observer coverage. Audit1292: The entire host-session mirror empty-inventory settle suite is removed. Live-unpublished versus genuinely-empty hydration, same-ID revision response/in-flight fencing and cleared-tracking pending-probe invalidation alarms are lost. The singleton store and inventories were mocked; no real host census or resume delivery or equivalent replacement coverage is claimed. Audit1302: src/main/runtime/session-tabs-inventory-publication.test.ts: Keep actual runtime public inventory authority across renderer epochs/resync, fallback, aborts and invalid graph publishers. Remove copied nonempty publication, private scan counters/collector and known-host replacement, fake refresh that performs the restoration itself, environment capability flag, and private resume-store characterization whose fixture supplies reservation/rollback ordering. Lose isolated refresh/churn/receiver/capability and copied-payload wiring 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. 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. Audit1318: src/shared/remote-runtime/control/remote-runtime-shared-control-connection.test.ts: Retain real local encrypted WebSocket regressions for pre-ready socket replacement preserving a request, close-before-ready logical subscription cleanup, unrelated RPC surviving another deadline, and pending setup abort leaving a sibling pending. Host server is synthetic and uses production crypto; kept scenarios also retain internal diagnostics/memory assertions unchanged. Remove happy routing, authority-envelope, unknown-ID/log, cleanup enum, binary, keepalive/liveness and production-budget/private socket inventories; intentionally lose those alarms, no physical host authorization, independent crypto or remote provider claim. Reduced selectors need fresh validation; historical full-suite receipts do not validate the changed coverage. No equivalent replacement or physical-provider claim. Audit1346 removes the entire private-state-injected session-tabs rich-status boundary suite. Its stale task/question, neutral-title preservation, owner-change and provider-generation alarms are intentionally lost. Retained real terminal journeys do not establish equivalent replacement coverage. The prior mixed 42-contract execution receipt is historical and must not validate the reduced current selector; fresh validation remains required. 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. 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. Audit1391: src/renderer/src/components/terminal-pane/pty-connection-remote-pause-drop-notice.spec.ts reduced. Lose repeated quiet switches avoiding snapshots and legacy host without drop-report capability requesting a snapshot. Retained imported registrar uses fake transport/xterm writes, exercising real gap/restore lifecycle rather than actual terminal rendering. No equivalent replacement coverage is claimed. The existing primary-selector receipt and its claims remain scoped to their unchanged sources; the broad optional command has no new execution result. Audit1396: src/renderer/src/components/terminal-pane/terminal-parked-watcher-reconciliation.test.ts reduced. Retire standalone reconcile set output and positive untouchedFreshSpawn/workspaceOwner copying alarms; no native watcher execution 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. 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. Audit1402: src/renderer/src/components/terminal-pane/pty-connection-park-reveal-model-snapshot.spec.ts reduced. Loses basic paired serialize/initial replay forwarding check; hidden alt-frame grid/precedence policy remains. No real terminal renderer claim. No equivalent replacement coverage is claimed. The existing primary-selector receipt and its claims remain scoped to their unchanged sources; the broad optional command has no new execution result. Audit1412: src/main/runtime/mobile-session-tabs-agent-status-heartbeat.test.ts reduced. Loses FIFO fairness/spacing, semantic bypass/cancellation, delayed-boundary scheduling and teardown timer-cleanup alarms. Retained fixed emission cases do not replace those outcomes. No equivalent replacement coverage is claimed.", + "coverageNotes": "Audit5922 intentionally retires mixed split/agent parking eligibility classification; incorrect eligibility can unmount a still-needed terminal or hide resume, though the retired predicate suite never mounts or resumes the actual view. These narrow alarms are lost without equivalent replacement. Remaining selectors/assertions and dated evidenceRuns retain their original scope; no fresh validation or whole-gate replacement claim. Preserve complete historical narratives and earlier knownGaps verbatim. Complete prior account retained verbatim: Audit5916 removes the entire local-worktree-creation-part-02.spec import from the retained runtime driver, intentionally losing the mocked exact-name create refusal when a selected PR matches a remote branch. The sole zero-auth terminal-handle registrar for another deleted suite is also retired, with no authored credit. Driver selectors retain only their narrowed import scope. Unchanged dated independent receipts are not equivalent replacement or fresh whole-gate validation. Complete prior account retained verbatim: Audit5901 removes only the mobile-creation-and-orchestration-part-03.spec import from the retained runtime driver. The fragment's missing-handle wait abort and waiter retirement on reload-exit alarms are intentionally lost. This is a conservative import-closure notice: named command filters may exclude those cases. Driver selectors remain; unchanged historical receipts retain their original scope and establish no fresh whole-gate pass or equivalent replacement. Complete prior account retained verbatim: Audit5896 removes only the paired-settings.spec and dispatch-mailbox-delivery.spec import lines from their retained runtime/mailbox drivers. Those imported suites and alarms are intentionally retired, without equivalent replacement. Driver selectors remain; unchanged dated receipts retain original scope and do not establish a new whole-gate import-closure pass. Complete prior account retained verbatim: Audit5879 retires the entire cold-parking hook suite and its stale exemption/park-set and unnecessary recomputation alarms. Remaining selectors are not equivalent replacement coverage; unchanged independent dated receipts retain their original scope and do not validate reduced commands. Historical prior account preserved verbatim: Audit5772 companion to audit5768: Retire the whole hidden-view parking policy suite. Direct oldest/cap/TTL/last-active worktree ranking and equal-hidden-time tab activation-order alarms are intentionally lost without equivalent replacement. Narrow one compound unit command and remove the parking testFiles entry. Physical parking/restoration/stream-budget selectors and assertions remain unchanged at their own exact scope; they are not certified as replacements. Complete dated evidenceRuns and unrelated selectors/assertions are unchanged; none selects these retired suites and none validates the narrowed command. No fresh execution, current import reachability, replacement coverage or native/platform/remote result is claimed. Complete prior account preserved verbatim below as historical, including any older then-retained coverage claim: Audit5571 removes the entire unrelated-PTY mobile heartbeat callback suite and its active selectors; its bookkeeping alarm is intentionally lost without equivalent replacement or fresh runtime evidence. Fourteen unrelated dated receipts retain their exact original scopes. Historical account follows: Audit5534 removes the whole last-active retention TTL selector suite (one authored/finite case). Its absolute-TTL and inside-boundary alarm is intentionally lost without equivalent replacement or fresh execution. Active command/file selectors drop only that suite; historical receipts remain at their original scope. 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. 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. 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. 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. The decorative fanout suite retains only real OSC9999 ingestion through runtime/title heartbeat/viewer past the stale boundary, preserving stateStartedAt and clearing expired prompt metadata. Spinner volume/zero-work inventories, Pi/Grok frame tables, rich-status and foreground-reset examples are retired. Existing receipts for separate paired-terminal sources retain their original scopes. 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. 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. Audit3342 removes three supplied activation/inventory fallback and same-handle retry examples; their fallback/retry alarms are intentionally lost without equivalent replacement. The exact mounted-HUB pending old-stream-end versus replacement-snapshot registration and its assertion remain. Unrelated dated macOS receipts retain only their original scope; no fresh runtime, provider, performance, mobile, mixed-version or cross-platform validation is claimed. NEXT46 terminal-owner layout and whole-case policy: src/renderer/src/components/terminal-pane/pty-connection/tests/pty-connection-hidden-replay.test.ts, src/renderer/src/components/terminal-pane/pty-connection/tests/pty-connection-visibility-and-exit.test.ts, src/renderer/src/runtime/hosted-terminals/streams/remote-runtime-terminal-stall-recovery.test.ts. Complete retired/reduced selectors lose their listed alarms; retained cases have no transferred historical pass or equivalent replacement coverage. Unaffected dated receipts retain only their original exact scopes. This metadata edit is not fresh execution evidence. Historical prior account (preserved verbatim): Audit3326 adopts reconciled source audit3324 and intentionally retires these low-value examples and their regression alarms: restarts only the stream whose renderer delivery credit never settles — An unreturned renderer delivery credit stalls only its stream, leaving healthy sibling/shared transport alive. Fake-clock deadline plus real multiplexer unsubscribe isolates recovery ownership.; probes then restarts a stream when an entered command receives no frames — Entered command produces no output; actual multiplexer must probe then close only its stalled stream after probe timeout. Distinct response liveness from parser credit.; establishes a probe baseline before recovering an unsequenced stream — 142-line manual five-probe baseline/regression sequence derives request IDs from encoded mock traffic and checks repeated no-close/close choreography. Oversized algorithm/state-machine example; no actual renderer/host command or recovery delivery. Retires unsequenced/unchanged/regressed baseline classification alarms.. Retained tests do not replace these alarms. Dated unrelated evidence remains scoped to its original execution; no historical source/import-closure equivalence, fresh execution, real network/provider/SSH, rendered UI, mobile, mixed-version or cross-platform validation is claimed. Audit 3318 reduces remote-runtime-pty-transport-unpublished-host-graph.test.ts, retiring its direct published-empty-graph omission-to-pane-exit alarm. The unchanged bounded unpublished-frame/pushed-recovery and stale-handle park/manual-retry cases are narrower, not equivalent replacements. Both complete three-case Linux receipts dated 2026-11-04 are archived as historical, including source heads; they do not validate this reduced selector. Remaining fourteen active receipts are macOS only. No fresh gate, provider, rendered, mobile, mixed-version, cross-platform, soak or measured-budget validation is claimed. 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. The direct side-effect-facts selector retains six cases: replay exclusion, live sequence handling, stale disposer ownership, one handoff drain, drain-before-snapshot, and stale replacement-snapshot refusal. Successful current-entry snapshot application is not witnessed by the retained snapshot case. 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. Audit2162: Reduced inventory-authority source intentionally loses the examples recorded in knownGaps; historical execution is not validation of changed bytes. Historical prior account (preserved verbatim): Audit2133 current-parent preparation: Current reduced sources/selectors intentionally retire the alarms listed in knownGaps; prior dated runs and replacement claims do not validate the changed set. Historical prior account (preserved verbatim): Audit2095 current-parent preparation2126: Current reduced sources/selectors intentionally retire the alarms listed in knownGaps; prior dated runs and replacement claims do not validate the changed set. Historical prior account (preserved verbatim): Audit2090 (sources2088/2089): Current reduced suites intentionally retire the alarms listed in knownGaps; prior dated execution and replacement claims do not validate changed source bytes or selectors. Historical prior account (preserved verbatim): Audit2086 (sources2082/2083): Current reduced suites intentionally retire the alarms listed in knownGaps; prior dated execution and replacement claims do not validate changed source bytes or selectors. Historical prior account (preserved verbatim): Audit2076 (sources2073/2074): Intentionally retire these low-value alarms without replacement: src/main/runtime/orca-runtime-tests/terminal-handles-part-02.spec.ts: recovers a moved SSH pane through the tab it now sits in, not the one its lease froze; reports a plain expired orphan; does not report a pane whose only recent lease was superseded; does not report a pane whose only recent lease had its relay id recycled; picks the eligible orphan over a superseded predecessor that matches first; collects the same tabs the per-tab reader reports, in one sweep of the leases; reports no candidate when no lease names any of the worktree tabs. src/main/runtime/orca-runtime-tests/runtime-availability.spec.ts: starts unavailable with no authoritative window; reports the configured Windows terminal shell on status; reports floating workspace availability from settings on status; polls floating tabs with targeted PTY liveness and no repo/provider inventory; hydrates persisted tabs when the store cannot report repos; advertises browser screencast only when a renderer window is available; routes mobile Codex reset consumption through the account mutation coordinator; maps a definite pre-provider rejection into an authoritative current snapshot. Existing unrelated evidenceRuns retain their original scope; unchanged dated receipt objects do not validate changed source bytes or reduced selectors. No fresh gate execution or historical import-closure equivalence is claimed. Frozen current literal-import graph reaches these changed test bytes; unresolved local and computed edges remain debt, and current reachability is not historical execution or equivalent replacement evidence. Historical prior account (preserved verbatim): Audit2003: Remove SSH/absent-inventory attach refusal, later-subscriber retry, no-view adoption/takeback, provider-tail/unknown-read projections, failed-keystroke retry and simpler loss reattach examples. Keep the existing-subscriber inventory-ready retry alias only at its retained callback, plus retained held-input cancellation/replacement and overlapping attach/loss fences. The inventory driver also loses the whole empty-worktree-publication registration and folder-host/unverifiable scalar examples. Retire the entire dated10-case attach receipt; retain16 independent receipts only in their original scopes. No retained-memory or real-daemon measurement follows from supplied provider inventories. Changed-source prior results do not validate reduced-source bytes. No fresh execution, equivalent replacement, red/green, measured budget, soak, physical provider/PTY, rendered, live remote/mobile or cross-platform result is claimed. Historical prior account (preserved verbatim): Audit1991: Remove initial-snapshot sequence-domain, limited-tail/truncation and unknown-output-sequence aliases whose callbacks are removed. The source retains partial-chunk replay and requested-snapshot retry/admission at supplied snapshot/data seams, not equivalent replacement or measured retained-memory proof. Preserve the existing stream/pending-wait capacity aliases only to their retained owning multiplex callbacks with supplied PTY resolutions. Removing the sibling-PTY heartbeat dedup work-count sample does not establish a new decorative fanout budget; the unrelated-PTY cancellation fence survives. Preserve17 unrelated dated receipts. 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: Remove the reasonless-close selector and narrow census aliases to actual retained runtime and injected-inventory callbacks. The removed synthetic census-dedup and isolated pre-boundary timing cases receive no replacement credit; preserve17 unrelated dated 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): Audit1939 (sources1934/1935): Delete the synthetic watcher-synchronization and partial-reconciliation suites. Retire all affected host-fact, capability-owner, activation-residue and retention-cap aliases because the remaining callbacks do not establish those full claims. Keep exact local hook/timer, byte-stream side effects, exit/disposal, scroll-intent cleanup and deterministic local rank/TTL progression callbacks within their mocked-host scope. No physical paired-host retention, resource budget or equivalent replacement evidence is assigned. The generic broad test command remains a runnable discovery command, never a dated execution receipt. 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): Audit1931 (sources1928/1929): Delete the complete hook-agent-status projection suite and its two behavioral assertion aliases. Supplied stored hook/title/resume/staleness/rename/question/generation/PTY-retirement/snapshot-version projections are intentionally lost. The separate osc-status-scan gate mentions this source only in existing historical notes and receives no mutation. No measured hidden-output retention, CPU/RSS or resource budget result is claimed by the deleted source or this audit. 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): Module ownership cleanup retires the modeled cold-park private watcher/render/work-count suites under the current test policy. Their assertions are no longer active evidence. Retained lifecycle tests and headed/headless journeys do not establish equivalent coverage for those removed harness alarms. 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: Retained exact unchanged-source receipts remain the only current execution evidence. Reduced selectors have no fresh execution result. Audit1417 intentionally deletes src/renderer/src/components/terminal-pane/pty-connection-hidden-tui-snapshot-replay.spec.ts: Loses rich hidden snapshot sequence replay/grid resize and forced repaint after hidden snapshot alarms, including live-trigger deduplication. deletes src/renderer/src/components/terminal-pane/terminal-cold-park-verdict-loop.test.tsx: Loses modeled React oscillation alarm; real pane/watchers are not exercised. deletes src/renderer/src/runtime/remote-runtime-terminal-parse-backpressure.test.ts: Loses delayed credit until parsing, malformed frame/unknown stream handling, discarded transformed output recovery and failed ACK rearm alarms. No equivalent replacement coverage or fresh result is claimed. Historical coverage account: Audit1412 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 response-after-manual-disconnect example. Its distinct in-flight response fencing alarm is lost; retained queued-call disconnect tests are not an equivalent replacement. Historical commands and results remain historical. Deterministic headed macOS runs launch an isolated Orca desktop server and a separate paired web client. A byte-identical headless run uses an isolated `orca serve` host. Both create six real paired host PTYs with bounded high-output scrollback, prove sustained output while all six client xterms are warm-mounted but hidden causes zero renderer scheduler work, then drive 180 timed real-PTY spinner frames through a second production `session.tabs.subscribeAll` transport and the real Zustand store. Each worktree must publish and apply only its exact initial-working and final-idle titles. Both topologies ordinary-park five xterms without enabling the lossy retention budget, assert bounded cells/heap/timer lag, then restore the bounded authoritative tail exactly once on the original PTY including output produced while parked and continued input/output. The headed oracle additionally keeps every remote target workspace and terminal unmounted in the host renderer before and after client recovery. Production-parity React contracts reproduce and remove the independent cold-park watcher/title feedback loop, including memo-cache discard, StrictMode cleanup replay, detached split-PTY replacement, and the zero-park fast path. A deterministic cross-boundary contract drives 24 real PTY trackers in distinct worktrees through 2,880 decorative spinner and bare-native redraw chunks and counts host publications, serialized bytes, renderer apply calls, and store mutations while preserving exact per-PTY raw chunks and per-worktree semantic transitions. Fake-clock continuation beyond the 30-minute stale boundary requires one deduplicated refresh per worktree every 15 minutes, globally spaced by at least 50 ms, with every mirrored working status still fresh. Exact-identical Pi plus rotating normalized Pi/Grok frames renew coarse working/permission state; rich prompt/tool/question fields retain their original 30-minute lease, and `stateStartedAt`/acknowledgement identity remain stable across title/hook source swaps. A separate headed desktop-client journey relaunches the host main process while retaining the daemon and a daemon-backgrounded PTY, then requires first-observation foreground sync and continued input/output on the same PTY. Unit coverage keeps layout versions out of snapshot output high-waters when a restored snapshot has no output sequence and retries an existing subscriber only after authoritative provider inventory proves the retained PTY exists. Separate headed/headless ACK-starvation tests recover one stalled stream without replacing its PTY. A headed output-drop oracle proves a successful snapshot probe cannot certify a stale live stream when the authoritative PTY sequence advanced beyond the client high-water. Unit coverage requires an unsequenced client to establish a first-probe baseline, remain attached at the same sequence, and recover only after a later probe advances. A capability-disabled run proves legacy hosts retain the prior lossy limit/TTL fallback. Unit tests cover exact-owner capability routing, raw-stream release, singleton side-effect facts with timed handoff cleanup, 64 simultaneous synthetic-title sources with zero decorative client events after convergence, per-client late-subscribe recovery, semantic bell/title transitions, local animation-frame preservation, legacy no-output-pause delivery gating with exact snapshot restore, provider-authoritative snapshots, 128 active streams plus retry after a 129th-stream capacity rejection, capacity-pressure backoff, full split-leaf remint reconciliation, truncation, and manual-disconnect queue fencing. Linux, Windows, live SSH, and production-scale paired hosts remain gaps. The audit removed the E2E parking override/debug-handle suite. Override exposure guards, delay/retention independence, TTL filtering and debug-handle forwarding alarms are lost. Retained real parking journeys do not establish equivalent test-harness configuration coverage. The test-value audit removes separate responsive-stream, intervening-control-frame and capacity-error classification examples. Retained multiplexer checks use fake clocks and captured transport callbacks; their per-stream isolation, deadline and probe-baseline assertions do not prove an actual host restart or equivalent replacement coverage. Historical run commands and results remain historical. The test-value audit removes the standalone retained/live metadata projection and additive-preference negative example from runtime-client-events.test.ts. Its remaining case checks partial-authority event admission through a captured callback; it does not establish full-pair projection, actual peer delivery or equivalent replacement coverage. Historical commands and results remain historical. The isolated accepted-handle-events observer suite is removed. Its runtime/worktree/pane membership, once-only delivery and listener-release ledger alarms are lost. Live hidden-retention evidence does not establish equivalent observer coverage. Audit1292: The entire host-session mirror empty-inventory settle suite is removed. Live-unpublished versus genuinely-empty hydration, same-ID revision response/in-flight fencing and cleared-tracking pending-probe invalidation alarms are lost. The singleton store and inventories were mocked; no real host census or resume delivery or equivalent replacement coverage is claimed. Audit1302: src/main/runtime/session-tabs-inventory-publication.test.ts: Keep actual runtime public inventory authority across renderer epochs/resync, fallback, aborts and invalid graph publishers. Remove copied nonempty publication, private scan counters/collector and known-host replacement, fake refresh that performs the restoration itself, environment capability flag, and private resume-store characterization whose fixture supplies reservation/rollback ordering. Lose isolated refresh/churn/receiver/capability and copied-payload wiring 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. 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. Audit1318: src/shared/remote-runtime/control/remote-runtime-shared-control-connection.test.ts: Retain real local encrypted WebSocket regressions for pre-ready socket replacement preserving a request, close-before-ready logical subscription cleanup, unrelated RPC surviving another deadline, and pending setup abort leaving a sibling pending. Host server is synthetic and uses production crypto; kept scenarios also retain internal diagnostics/memory assertions unchanged. Remove happy routing, authority-envelope, unknown-ID/log, cleanup enum, binary, keepalive/liveness and production-budget/private socket inventories; intentionally lose those alarms, no physical host authorization, independent crypto or remote provider claim. Reduced selectors need fresh validation; historical full-suite receipts do not validate the changed coverage. No equivalent replacement or physical-provider claim. Audit1346 removes the entire private-state-injected session-tabs rich-status boundary suite. Its stale task/question, neutral-title preservation, owner-change and provider-generation alarms are intentionally lost. Retained real terminal journeys do not establish equivalent replacement coverage. The prior mixed 42-contract execution receipt is historical and must not validate the reduced current selector; fresh validation remains required. 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. 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. Audit1391: src/renderer/src/components/terminal-pane/pty-connection-remote-pause-drop-notice.spec.ts reduced. Lose repeated quiet switches avoiding snapshots and legacy host without drop-report capability requesting a snapshot. Retained imported registrar uses fake transport/xterm writes, exercising real gap/restore lifecycle rather than actual terminal rendering. No equivalent replacement coverage is claimed. The existing primary-selector receipt and its claims remain scoped to their unchanged sources; the broad optional command has no new execution result. Audit1396: src/renderer/src/components/terminal-pane/terminal-parked-watcher-reconciliation.test.ts reduced. Retire standalone reconcile set output and positive untouchedFreshSpawn/workspaceOwner copying alarms; no native watcher execution 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. 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. Audit1402: src/renderer/src/components/terminal-pane/pty-connection-park-reveal-model-snapshot.spec.ts reduced. Loses basic paired serialize/initial replay forwarding check; hidden alt-frame grid/precedence policy remains. No real terminal renderer claim. No equivalent replacement coverage is claimed. The existing primary-selector receipt and its claims remain scoped to their unchanged sources; the broad optional command has no new execution result. Audit1412: src/main/runtime/mobile-session-tabs-agent-status-heartbeat.test.ts reduced. Loses FIFO fairness/spacing, semantic bypass/cancellation, delayed-boundary scheduling and teardown timer-cleanup alarms. Retained fixed emission cases do not replace those outcomes. No equivalent replacement coverage is claimed.", "motivatingLinks": [ "https://github.com/stablyai/orca/issues/8652", "https://github.com/stablyai/orca/pull/10625" ], "invariant": "A host advertising terminal.paired-parking.v1 keeps the PTY and bounded authoritative history alive while an ordinary hidden-view park destroys the client xterm and releases its raw per-PTY stream. Reveal must restore up to the requested 5,000 rows, parked-time side effects/output, the same PTY identity, and continued input/output. Parked watcher synchronization compares parking semantics rather than fresh object identity, owns setup and cleanup across StrictMode replay, reconciles real PTY/layout changes, and performs no terminal-state scan when nothing is parked. After a host main-process relaunch, unknown local delivery-sync state must not be treated as proof that a surviving daemon PTY is already foregrounded. An empty headed session-tab inventory is authoritative only after the current renderer graph generation publishes a complete inventory and every execution host answers the PTY census; unpublished, resync-pending, transport-failed, and partially scoped inventories remain unverifiable, while genuinely authoritative empty and non-empty inventories settle and a scope-less legacy empty keeps its pre-authority best-effort settle so outdated hosts retain agent auto-resume. The unpublished-empty regression must keep the resume dispatch parked with exactly one daemon process/writer; restoring unconditional empty hydration must release one dispatch and create two live writers. If subscription precedes provider readiness, authoritative inventory must reconsider that existing subscriber without spawning, resizing, or changing reconnect state. A snapshot without an output high-water must keep it unknown rather than borrowing a layout version that can suppress newer live output. Hosts without the capability must gate hidden raw output before xterm scheduling and repaint from the authoritative snapshot on reveal while retaining the existing limit/TTL force-parking fallback. After the first semantic title state, decorative spinner frequency must add zero paired client-event frames and zero full session-tabs work between status-freshness leases regardless of hidden worktree count. Continuous working or permission evidence may refresh each affected worktree once per 15 minutes through one globally spaced FIFO so current and legacy viewers do not decay before 30 minutes; sibling PTYs share that worktree refresh, while local title animation, raw output, and semantic title, status, bell, completion, and query facts remain intact. A paired terminal stream whose delivery credits stop progressing must replace only that stream; command silence first probes authoritative state and replaces the stream if the probe times out or proves the PTY advanced beyond the client's delivered output sequence. When no comparable delivery high-water exists, the first sequenced probe establishes a baseline and only later advancement proves staleness. A same-sequence snapshot remains valid proof of a responsive silent command. A successful status probe may replace a pre-ready shared-control socket without rejecting or duplicating calls already waiting for that transport. Manual disconnect must retain pairing while preventing queued or passive calls and subscriptions from recreating transport until explicit Connect. A paired pane reconnecting to a relaunched host that has not yet published its window graph (an unpublished frame, bare or client-projected) must stay in recovery rather than retire, and the host's first published snapshot carrying the surface must reattach it; a published frame lacking the surface still retires it. The placeholder is only ever sent before the host's graph first publishes; afterwards a worktree with no tabs gets a real empty answer, pushed once to any client that asked during startup, so a paired client opening a never-opened host worktree still gets its first terminal.", - "oracle": "Audit5916 removes the entire local-worktree-creation-part-02.spec import from the retained runtime driver, intentionally losing the mocked exact-name create refusal when a selected PR matches a remote branch. The sole zero-auth terminal-handle registrar for another deleted suite is also retired, with no authored credit. Driver selectors retain only their narrowed import scope. Unchanged dated independent receipts are not equivalent replacement or fresh whole-gate validation. Complete prior account retained verbatim: Audit5896 removes only the paired-settings.spec and dispatch-mailbox-delivery.spec import lines from their retained runtime/mailbox drivers. Those imported suites and alarms are intentionally retired, without equivalent replacement. Driver selectors remain; unchanged dated receipts retain original scope and do not establish a new whole-gate import-closure pass. Complete prior account retained verbatim: Audit5879 retires the entire cold-parking hook suite and its stale exemption/park-set and unnecessary recomputation alarms. Remaining selectors are not equivalent replacement coverage; unchanged independent dated receipts retain their original scope and do not validate reduced commands. Historical prior account preserved verbatim: Audit5772 companion to audit5768: Retire the whole hidden-view parking policy suite. Direct oldest/cap/TTL/last-active worktree ranking and equal-hidden-time tab activation-order alarms are intentionally lost without equivalent replacement. Narrow one compound unit command and remove the parking testFiles entry. Physical parking/restoration/stream-budget selectors and assertions remain unchanged at their own exact scope; they are not certified as replacements. Complete dated evidenceRuns and unrelated selectors/assertions are unchanged; none selects these retired suites and none validates the narrowed command. No fresh execution, current import reachability, replacement coverage or native/platform/remote result is claimed. Complete prior account preserved verbatim below as historical, including any older then-retained coverage claim: 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. 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. 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. 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. The decorative fanout suite retains only real OSC9999 ingestion through runtime/title heartbeat/viewer past the stale boundary, preserving stateStartedAt and clearing expired prompt metadata. Spinner volume/zero-work inventories, Pi/Grok frame tables, rich-status and foreground-reset examples are retired. Existing receipts for separate paired-terminal sources retain their original scopes. 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. 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. Audit3342 removes three supplied activation/inventory fallback and same-handle retry examples; their fallback/retry alarms are intentionally lost without equivalent replacement. The exact mounted-HUB pending old-stream-end versus replacement-snapshot registration and its assertion remain. Unrelated dated macOS receipts retain only their original scope; no fresh runtime, provider, performance, mobile, mixed-version or cross-platform validation is claimed. Audit3326 adopts reconciled source audit3324 and intentionally retires these low-value examples and their regression alarms: restarts only the stream whose renderer delivery credit never settles — An unreturned renderer delivery credit stalls only its stream, leaving healthy sibling/shared transport alive. Fake-clock deadline plus real multiplexer unsubscribe isolates recovery ownership.; probes then restarts a stream when an entered command receives no frames — Entered command produces no output; actual multiplexer must probe then close only its stalled stream after probe timeout. Distinct response liveness from parser credit.; establishes a probe baseline before recovering an unsequenced stream — 142-line manual five-probe baseline/regression sequence derives request IDs from encoded mock traffic and checks repeated no-close/close choreography. Oversized algorithm/state-machine example; no actual renderer/host command or recovery delivery. Retires unsequenced/unchanged/regressed baseline classification alarms.. Retained tests do not replace these alarms. Dated unrelated evidence remains scoped to its original execution; no historical source/import-closure equivalence, fresh execution, real network/provider/SSH, rendered UI, mobile, mixed-version or cross-platform validation is claimed. Audit 3318 reduces remote-runtime-pty-transport-unpublished-host-graph.test.ts, retiring its direct published-empty-graph omission-to-pane-exit alarm. The unchanged bounded unpublished-frame/pushed-recovery and stale-handle park/manual-retry cases are narrower, not equivalent replacements. Both complete three-case Linux receipts dated 2026-11-04 are archived as historical, including source heads; they do not validate this reduced selector. Remaining fourteen active receipts are macOS only. No fresh gate, provider, rendered, mobile, mixed-version, cross-platform, soak or measured-budget validation is claimed. 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. The direct side-effect-facts selector retains six cases: replay exclusion, live sequence handling, stale disposer ownership, one handoff drain, drain-before-snapshot, and stale replacement-snapshot refusal. Successful current-entry snapshot application is not witnessed by the retained snapshot case. 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): Audit2003: Remove SSH/absent-inventory attach refusal, later-subscriber retry, no-view adoption/takeback, provider-tail/unknown-read projections, failed-keystroke retry and simpler loss reattach examples. Keep the existing-subscriber inventory-ready retry alias only at its retained callback, plus retained held-input cancellation/replacement and overlapping attach/loss fences. The inventory driver also loses the whole empty-worktree-publication registration and folder-host/unverifiable scalar examples. Retire the entire dated10-case attach receipt; retain16 independent receipts only in their original scopes. No retained-memory or real-daemon measurement follows from supplied provider inventories. Changed-source prior results do not validate reduced-source bytes. No fresh execution, equivalent replacement, red/green, measured budget, soak, physical provider/PTY, rendered, live remote/mobile or cross-platform result is claimed. Historical prior account (preserved verbatim): Audit1991: Remove initial-snapshot sequence-domain, limited-tail/truncation and unknown-output-sequence aliases whose callbacks are removed. The source retains partial-chunk replay and requested-snapshot retry/admission at supplied snapshot/data seams, not equivalent replacement or measured retained-memory proof. Preserve the existing stream/pending-wait capacity aliases only to their retained owning multiplex callbacks with supplied PTY resolutions. Removing the sibling-PTY heartbeat dedup work-count sample does not establish a new decorative fanout budget; the unrelated-PTY cancellation fence survives. Preserve17 unrelated dated receipts. 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: Remove the reasonless-close selector and narrow census aliases to actual retained runtime and injected-inventory callbacks. The removed synthetic census-dedup and isolated pre-boundary timing cases receive no replacement credit; preserve17 unrelated dated 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): Audit1939 (sources1934/1935): Delete the synthetic watcher-synchronization and partial-reconciliation suites. Retire all affected host-fact, capability-owner, activation-residue and retention-cap aliases because the remaining callbacks do not establish those full claims. Keep exact local hook/timer, byte-stream side effects, exit/disposal, scroll-intent cleanup and deterministic local rank/TTL progression callbacks within their mocked-host scope. No physical paired-host retention, resource budget or equivalent replacement evidence is assigned. The generic broad test command remains a runnable discovery command, never a dated execution receipt. 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): Audit1931 (sources1928/1929): Delete the complete hook-agent-status projection suite and its two behavioral assertion aliases. Supplied stored hook/title/resume/staleness/rename/question/generation/PTY-retirement/snapshot-version projections are intentionally lost. The separate osc-status-scan gate mentions this source only in existing historical notes and receives no mutation. No measured hidden-output retention, CPU/RSS or resource budget result is claimed by the deleted source or this audit. Preserve meaningful remaining selectors/assertions and unchanged dated receipts within their original scope. Reduced selectors have no fresh gate execution evidence in this metadata packet. No equivalent replacement, physical watcher/PTY/provider, live SSH/remote/mobile, rendered, cross-platform, soak or measured-budget result is claimed. Historical prior account (preserved verbatim): Retained exact unchanged-source receipts remain the only current execution evidence. Reduced selectors have no fresh execution result. Historical pre-audit oracle account for changed sources: The retained unchanged-source receipts are the only current execution evidence; reduced-source assertions await validation. Historical oracle account (not a current claim for changed sources): 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: Run one byte-identical six-terminal oracle against an isolated headed desktop host and an isolated headless `orca serve` host. Stage at least 1,000,000 xterm cells, hide all six warm managers, emit an initial working title followed by 30 timed real-PTY spinner frames and a final idle title per worktree, and observe a second real session-tabs subscription plus the production renderer store. Require exactly two transport envelopes and two title mutations per worktree, no decorative title crossing either boundary, and positive decoded-envelope bytes. Enable ordinary parking with the lossy retention budget disabled, require exactly one mounted manager and five parked tabs, at most 45% retained cells, no more than 16 MiB heap growth, and under 500 ms timer drift. In headed mode, require the host renderer to remain on its original workspace with zero target terminal managers mounted throughout client park, reveal, and live I/O. While a tab is parked, require authoritative terminal.read to observe new PTY output; reveal it and require the original PTY, a marker within the requested 5,000-row history, the parked marker, and post-reveal input/output. Drive 24 real PTY title trackers in distinct worktrees through 40 decorative spinner frames each, then 40 spinner frames alternating with Cursor's bare native identity redraw, using fake clocks. Require all 2,880 raw chunks exactly and zero host session-tabs publications, serialized bytes, renderer apply calls, and renderer store mutations. Continue decorative evidence beyond 30 minutes, require exactly one refresh per worktree per 15-minute lease through a FIFO spaced by at least 50 ms, and require all 24 viewer statuses to remain working and fresh; then require one exact semantic idle transition and one visible-output chunk per PTY. Require ordinary and interior-Braille title changes to publish. Drive 64 host PTYs through ten 80 ms synthetic title frames, require zero paired client events after the first frame per PTY while all 640 local frames remain observable, attach a late client and require one current frame per PTY, then require semantic bell and idle transitions on both clients. Reconstruct a legacy subscribed stream with no outputPause capability, hide a chatty pane, require no hidden xterm writes, reveal it, and require one authoritative snapshot plus continued live output. Drop and acknowledge output only for one original paired-client stream, prove the fixture process consumed input while the host model advanced and the client stayed stale, then require the command snapshot probe to replace that stream, repaint exact fixture output, preserve authoritative PTY identity and target-tab cardinality, and resume live I/O. For a client without a delivered sequence, require the first numeric probe to establish a baseline without replacement, a same-sequence probe to remain attached, and a later advanced probe to replace only that stream. Withhold the first encrypted shared-control ready frame, start one RPC, trigger a status-probe refresh, and require two connections, one host delivery, successful response, and zero retained request bytes. Admit 128 active streams, reject the 129th as retryable, release one stream, then require the retry to attach and publish a snapshot without multiplying retained subscribers. Disable terminal.paired-parking.v1 and require the same oracle to fail before parking, while the legacy limit-one fallback separately passes. Also preserve truncated first paint, ACK-starved same-PTY recovery, responsive silent-command snapshot probes, dead-stream probe timeout recovery, and queued manual-disconnect fencing.", + "oracle": "Audit5922 intentionally retires mixed split/agent parking eligibility classification; incorrect eligibility can unmount a still-needed terminal or hide resume, though the retired predicate suite never mounts or resumes the actual view. These narrow alarms are lost without equivalent replacement. Remaining selectors/assertions and dated evidenceRuns retain their original scope; no fresh validation or whole-gate replacement claim. Preserve complete historical narratives and earlier knownGaps verbatim. Complete prior account retained verbatim: Audit5916 removes the entire local-worktree-creation-part-02.spec import from the retained runtime driver, intentionally losing the mocked exact-name create refusal when a selected PR matches a remote branch. The sole zero-auth terminal-handle registrar for another deleted suite is also retired, with no authored credit. Driver selectors retain only their narrowed import scope. Unchanged dated independent receipts are not equivalent replacement or fresh whole-gate validation. Complete prior account retained verbatim: Audit5896 removes only the paired-settings.spec and dispatch-mailbox-delivery.spec import lines from their retained runtime/mailbox drivers. Those imported suites and alarms are intentionally retired, without equivalent replacement. Driver selectors remain; unchanged dated receipts retain original scope and do not establish a new whole-gate import-closure pass. Complete prior account retained verbatim: Audit5879 retires the entire cold-parking hook suite and its stale exemption/park-set and unnecessary recomputation alarms. Remaining selectors are not equivalent replacement coverage; unchanged independent dated receipts retain their original scope and do not validate reduced commands. Historical prior account preserved verbatim: Audit5772 companion to audit5768: Retire the whole hidden-view parking policy suite. Direct oldest/cap/TTL/last-active worktree ranking and equal-hidden-time tab activation-order alarms are intentionally lost without equivalent replacement. Narrow one compound unit command and remove the parking testFiles entry. Physical parking/restoration/stream-budget selectors and assertions remain unchanged at their own exact scope; they are not certified as replacements. Complete dated evidenceRuns and unrelated selectors/assertions are unchanged; none selects these retired suites and none validates the narrowed command. No fresh execution, current import reachability, replacement coverage or native/platform/remote result is claimed. Complete prior account preserved verbatim below as historical, including any older then-retained coverage claim: 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. 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. 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. 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. The decorative fanout suite retains only real OSC9999 ingestion through runtime/title heartbeat/viewer past the stale boundary, preserving stateStartedAt and clearing expired prompt metadata. Spinner volume/zero-work inventories, Pi/Grok frame tables, rich-status and foreground-reset examples are retired. Existing receipts for separate paired-terminal sources retain their original scopes. 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. 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. Audit3342 removes three supplied activation/inventory fallback and same-handle retry examples; their fallback/retry alarms are intentionally lost without equivalent replacement. The exact mounted-HUB pending old-stream-end versus replacement-snapshot registration and its assertion remain. Unrelated dated macOS receipts retain only their original scope; no fresh runtime, provider, performance, mobile, mixed-version or cross-platform validation is claimed. Audit3326 adopts reconciled source audit3324 and intentionally retires these low-value examples and their regression alarms: restarts only the stream whose renderer delivery credit never settles — An unreturned renderer delivery credit stalls only its stream, leaving healthy sibling/shared transport alive. Fake-clock deadline plus real multiplexer unsubscribe isolates recovery ownership.; probes then restarts a stream when an entered command receives no frames — Entered command produces no output; actual multiplexer must probe then close only its stalled stream after probe timeout. Distinct response liveness from parser credit.; establishes a probe baseline before recovering an unsequenced stream — 142-line manual five-probe baseline/regression sequence derives request IDs from encoded mock traffic and checks repeated no-close/close choreography. Oversized algorithm/state-machine example; no actual renderer/host command or recovery delivery. Retires unsequenced/unchanged/regressed baseline classification alarms.. Retained tests do not replace these alarms. Dated unrelated evidence remains scoped to its original execution; no historical source/import-closure equivalence, fresh execution, real network/provider/SSH, rendered UI, mobile, mixed-version or cross-platform validation is claimed. Audit 3318 reduces remote-runtime-pty-transport-unpublished-host-graph.test.ts, retiring its direct published-empty-graph omission-to-pane-exit alarm. The unchanged bounded unpublished-frame/pushed-recovery and stale-handle park/manual-retry cases are narrower, not equivalent replacements. Both complete three-case Linux receipts dated 2026-11-04 are archived as historical, including source heads; they do not validate this reduced selector. Remaining fourteen active receipts are macOS only. No fresh gate, provider, rendered, mobile, mixed-version, cross-platform, soak or measured-budget validation is claimed. 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. The direct side-effect-facts selector retains six cases: replay exclusion, live sequence handling, stale disposer ownership, one handoff drain, drain-before-snapshot, and stale replacement-snapshot refusal. Successful current-entry snapshot application is not witnessed by the retained snapshot case. 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): Audit2003: Remove SSH/absent-inventory attach refusal, later-subscriber retry, no-view adoption/takeback, provider-tail/unknown-read projections, failed-keystroke retry and simpler loss reattach examples. Keep the existing-subscriber inventory-ready retry alias only at its retained callback, plus retained held-input cancellation/replacement and overlapping attach/loss fences. The inventory driver also loses the whole empty-worktree-publication registration and folder-host/unverifiable scalar examples. Retire the entire dated10-case attach receipt; retain16 independent receipts only in their original scopes. No retained-memory or real-daemon measurement follows from supplied provider inventories. Changed-source prior results do not validate reduced-source bytes. No fresh execution, equivalent replacement, red/green, measured budget, soak, physical provider/PTY, rendered, live remote/mobile or cross-platform result is claimed. Historical prior account (preserved verbatim): Audit1991: Remove initial-snapshot sequence-domain, limited-tail/truncation and unknown-output-sequence aliases whose callbacks are removed. The source retains partial-chunk replay and requested-snapshot retry/admission at supplied snapshot/data seams, not equivalent replacement or measured retained-memory proof. Preserve the existing stream/pending-wait capacity aliases only to their retained owning multiplex callbacks with supplied PTY resolutions. Removing the sibling-PTY heartbeat dedup work-count sample does not establish a new decorative fanout budget; the unrelated-PTY cancellation fence survives. Preserve17 unrelated dated receipts. 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: Remove the reasonless-close selector and narrow census aliases to actual retained runtime and injected-inventory callbacks. The removed synthetic census-dedup and isolated pre-boundary timing cases receive no replacement credit; preserve17 unrelated dated 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): Audit1939 (sources1934/1935): Delete the synthetic watcher-synchronization and partial-reconciliation suites. Retire all affected host-fact, capability-owner, activation-residue and retention-cap aliases because the remaining callbacks do not establish those full claims. Keep exact local hook/timer, byte-stream side effects, exit/disposal, scroll-intent cleanup and deterministic local rank/TTL progression callbacks within their mocked-host scope. No physical paired-host retention, resource budget or equivalent replacement evidence is assigned. The generic broad test command remains a runnable discovery command, never a dated execution receipt. 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): Audit1931 (sources1928/1929): Delete the complete hook-agent-status projection suite and its two behavioral assertion aliases. Supplied stored hook/title/resume/staleness/rename/question/generation/PTY-retirement/snapshot-version projections are intentionally lost. The separate osc-status-scan gate mentions this source only in existing historical notes and receives no mutation. No measured hidden-output retention, CPU/RSS or resource budget result is claimed by the deleted source or this audit. Preserve meaningful remaining selectors/assertions and unchanged dated receipts within their original scope. Reduced selectors have no fresh gate execution evidence in this metadata packet. No equivalent replacement, physical watcher/PTY/provider, live SSH/remote/mobile, rendered, cross-platform, soak or measured-budget result is claimed. Historical prior account (preserved verbatim): Retained exact unchanged-source receipts remain the only current execution evidence. Reduced selectors have no fresh execution result. Historical pre-audit oracle account for changed sources: The retained unchanged-source receipts are the only current execution evidence; reduced-source assertions await validation. Historical oracle account (not a current claim for changed sources): 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: Run one byte-identical six-terminal oracle against an isolated headed desktop host and an isolated headless `orca serve` host. Stage at least 1,000,000 xterm cells, hide all six warm managers, emit an initial working title followed by 30 timed real-PTY spinner frames and a final idle title per worktree, and observe a second real session-tabs subscription plus the production renderer store. Require exactly two transport envelopes and two title mutations per worktree, no decorative title crossing either boundary, and positive decoded-envelope bytes. Enable ordinary parking with the lossy retention budget disabled, require exactly one mounted manager and five parked tabs, at most 45% retained cells, no more than 16 MiB heap growth, and under 500 ms timer drift. In headed mode, require the host renderer to remain on its original workspace with zero target terminal managers mounted throughout client park, reveal, and live I/O. While a tab is parked, require authoritative terminal.read to observe new PTY output; reveal it and require the original PTY, a marker within the requested 5,000-row history, the parked marker, and post-reveal input/output. Drive 24 real PTY title trackers in distinct worktrees through 40 decorative spinner frames each, then 40 spinner frames alternating with Cursor's bare native identity redraw, using fake clocks. Require all 2,880 raw chunks exactly and zero host session-tabs publications, serialized bytes, renderer apply calls, and renderer store mutations. Continue decorative evidence beyond 30 minutes, require exactly one refresh per worktree per 15-minute lease through a FIFO spaced by at least 50 ms, and require all 24 viewer statuses to remain working and fresh; then require one exact semantic idle transition and one visible-output chunk per PTY. Require ordinary and interior-Braille title changes to publish. Drive 64 host PTYs through ten 80 ms synthetic title frames, require zero paired client events after the first frame per PTY while all 640 local frames remain observable, attach a late client and require one current frame per PTY, then require semantic bell and idle transitions on both clients. Reconstruct a legacy subscribed stream with no outputPause capability, hide a chatty pane, require no hidden xterm writes, reveal it, and require one authoritative snapshot plus continued live output. Drop and acknowledge output only for one original paired-client stream, prove the fixture process consumed input while the host model advanced and the client stayed stale, then require the command snapshot probe to replace that stream, repaint exact fixture output, preserve authoritative PTY identity and target-tab cardinality, and resume live I/O. For a client without a delivered sequence, require the first numeric probe to establish a baseline without replacement, a same-sequence probe to remain attached, and a later advanced probe to replace only that stream. Withhold the first encrypted shared-control ready frame, start one RPC, trigger a status-probe refresh, and require two connections, one host delivery, successful response, and zero retained request bytes. Admit 128 active streams, reject the 129th as retryable, release one stream, then require the retry to attach and publish a snapshot without multiplying retained subscribers. Disable terminal.paired-parking.v1 and require the same oracle to fail before parking, while the legacy limit-one fallback separately passes. Also preserve truncated first paint, ACK-starved same-PTY recovery, responsive silent-command snapshot probes, dead-stream probe timeout recovery, and queued manual-disconnect fencing.", "commands": [ "pnpm exec vitest run --config config/vitest.config.ts src/renderer/src/components/terminal-pane/pty-transport/remote-runtime/remote-runtime-pty-transport-unpublished-host-graph.test.ts", "ORCA_BACKGROUND_LAUNCH=1 pnpm exec playwright test tests/e2e/paired-remote-terminal-host-quit-reconnect-input.spec.ts --config tests/playwright.config.ts --project electron-headless --workers=1", "pnpm exec vitest run --config config/vitest.config.ts src/main/runtime/terminal/query/runtime-terminal-inventory-contracts.test.ts", "ORCA_BACKGROUND_LAUNCH=1 pnpm exec playwright test tests/e2e/paired-client-first-terminal-unopened-host-worktree.spec.ts --config tests/playwright.config.ts --project electron-headless --workers=1", "pnpm exec vitest run --config config/vitest.config.ts tests/e2e/session-tabs-decorative-title-fanout.unit.test.ts --maxWorkers=1", - "pnpm exec vitest run --config config/vitest.config.ts src/main/runtime/construction/orca-runtime.test.ts src/main/runtime/rpc/terminal/terminal-multiplex-initial-snapshot-buffering.test.ts src/main/runtime/rpc/terminal/terminal-multiplex-pty-wait-capacity.test.ts src/main/runtime/rpc/terminal/terminal-subscribe-buffer.test.ts src/renderer/src/components/terminal-pane/pty-transport/output/terminal-side-effect-facts-handler.test.ts src/renderer/src/components/terminal-pane/pty-transport/remote-runtime/remote-runtime-pty-transport-activation-inventory-fallback.test.ts src/renderer/src/components/terminal-pane/parking/output-watchers/terminal-parked-tab-watchers.test.ts src/renderer/src/runtime/rpc/subscriptions/runtime-client-events.test.ts src/renderer/src/web/web-preload-api-runtime-environment.test.ts src/main/ipc/runtime-environments/pairing/runtime-environments-pairing.test.ts", + "pnpm exec vitest run --config config/vitest.config.ts src/main/runtime/construction/orca-runtime.test.ts src/main/runtime/rpc/terminal/terminal-multiplex-initial-snapshot-buffering.test.ts src/main/runtime/rpc/terminal/terminal-multiplex-pty-wait-capacity.test.ts src/main/runtime/rpc/terminal/terminal-subscribe-buffer.test.ts src/renderer/src/components/terminal-pane/pty-transport/output/terminal-side-effect-facts-handler.test.ts src/renderer/src/components/terminal-pane/pty-transport/remote-runtime/remote-runtime-pty-transport-activation-inventory-fallback.test.ts src/renderer/src/runtime/rpc/subscriptions/runtime-client-events.test.ts src/renderer/src/web/web-preload-api-runtime-environment.test.ts src/main/ipc/runtime-environments/pairing/runtime-environments-pairing.test.ts", "pnpm exec vitest run --config config/vitest.config.ts src/main/runtime/terminal/adoption/terminal-subscriber-driven-daemon-attach.test.ts", "pnpm exec vitest run --config config/vitest.config.ts src/main/runtime/session-tabs/runtime-inventory-publication-authority.test.ts src/main/runtime/rpc/methods/session-tabs/session-tabs-inventory-census-race.test.ts src/main/daemon/terminal-host/testing/terminal-host-agent-session.test.ts tests/e2e/session-tabs-empty-inventory-daemon-oracle.unit.test.ts --maxWorkers=1", "pnpm exec vitest run --config config/vitest.config.ts src/shared/remote-runtime/control/remote-runtime-shared-control-connection.test.ts", @@ -7931,7 +7932,6 @@ "src/main/daemon/terminal-host/testing/terminal-host-agent-session.test.ts", "tests/e2e/session-tabs-empty-inventory-daemon-oracle.unit.test.ts", "src/renderer/src/components/terminal-pane/pty-transport/output/terminal-side-effect-facts-handler.test.ts", - "src/renderer/src/components/terminal-pane/parking/output-watchers/terminal-parked-tab-watchers.test.ts", "src/renderer/src/runtime/rpc/subscriptions/runtime-client-events.test.ts", "src/renderer/src/components/terminal-pane/pty-transport/remote-runtime/remote-runtime-pty-transport-activation-inventory-fallback.test.ts", "src/shared/remote-runtime/control/remote-runtime-shared-control-connection.test.ts", @@ -8359,7 +8359,8 @@ "Audit5879 retired cold-parking selector metadata; complete original commands/testFiles preserved as history: {\"commands\":[\"pnpm exec vitest run --config config/vitest.config.ts src/renderer/src/components/terminal-pane/pty-transport/remote-runtime/remote-runtime-pty-transport-unpublished-host-graph.test.ts\",\"ORCA_BACKGROUND_LAUNCH=1 pnpm exec playwright test tests/e2e/paired-remote-terminal-host-quit-reconnect-input.spec.ts --config tests/playwright.config.ts --project electron-headless --workers=1\",\"pnpm exec vitest run --config config/vitest.config.ts src/main/runtime/terminal/query/runtime-terminal-inventory-contracts.test.ts\",\"ORCA_BACKGROUND_LAUNCH=1 pnpm exec playwright test tests/e2e/paired-client-first-terminal-unopened-host-worktree.spec.ts --config tests/playwright.config.ts --project electron-headless --workers=1\",\"pnpm exec vitest run --config config/vitest.config.ts tests/e2e/session-tabs-decorative-title-fanout.unit.test.ts --maxWorkers=1\",\"pnpm exec vitest run --config config/vitest.config.ts src/renderer/src/components/terminal-pane/parking/lifecycle/use-terminal-tab-cold-parking.test.ts --maxWorkers=1\",\"pnpm exec vitest run --config config/vitest.config.ts src/main/runtime/construction/orca-runtime.test.ts src/main/runtime/rpc/terminal/terminal-multiplex-initial-snapshot-buffering.test.ts src/main/runtime/rpc/terminal/terminal-multiplex-pty-wait-capacity.test.ts src/main/runtime/rpc/terminal/terminal-subscribe-buffer.test.ts src/renderer/src/components/terminal-pane/pty-transport/output/terminal-side-effect-facts-handler.test.ts src/renderer/src/components/terminal-pane/pty-transport/remote-runtime/remote-runtime-pty-transport-activation-inventory-fallback.test.ts src/renderer/src/components/terminal-pane/parking/output-watchers/terminal-parked-tab-watchers.test.ts src/renderer/src/runtime/rpc/subscriptions/runtime-client-events.test.ts src/renderer/src/web/web-preload-api-runtime-environment.test.ts src/main/ipc/runtime-environments/pairing/runtime-environments-pairing.test.ts\",\"pnpm exec vitest run --config config/vitest.config.ts src/main/runtime/terminal/adoption/terminal-subscriber-driven-daemon-attach.test.ts\",\"pnpm exec vitest run --config config/vitest.config.ts src/main/runtime/session-tabs/runtime-inventory-publication-authority.test.ts src/main/runtime/rpc/methods/session-tabs/session-tabs-inventory-census-race.test.ts src/main/daemon/terminal-host/testing/terminal-host-agent-session.test.ts tests/e2e/session-tabs-empty-inventory-daemon-oracle.unit.test.ts --maxWorkers=1\",\"pnpm exec vitest run --config config/vitest.config.ts src/shared/remote-runtime/control/remote-runtime-shared-control-connection.test.ts\",\"SKIP_BUILD=1 pnpm exec playwright test tests/e2e/paired-remote-terminal-host-restart-background-sync.spec.ts --config tests/playwright.config.ts --project electron-headless --workers=1\",\"ORCA_E2E_FORWARD_APP_LOGS=1 SKIP_BUILD=1 pnpm exec playwright test tests/e2e/paired-remote-terminal-host-restart-background-sync.spec.ts --config tests/playwright.config.ts --project electron-headless --workers=1 --repeat-each=10 --max-failures=1\",\"ORCA_E2E_WEB_CLIENT=1 SKIP_BUILD=1 pnpm exec playwright test tests/e2e/paired-remote-terminal-truncated-tail-first-paint.spec.ts --config tests/playwright.config.ts --project electron-headful --workers=1\",\"SKIP_BUILD=1 pnpm exec playwright test tests/e2e/paired-remote-terminal-lossy-initial-snapshot.spec.ts --config tests/playwright.config.ts --project electron-headful --workers=1\",\"ORCA_E2E_WEB_CLIENT=1 ORCA_E2E_DISABLE_PAIRED_TERMINAL_PARKING=1 SKIP_BUILD=1 pnpm exec playwright test tests/e2e/paired-remote-terminal-truncated-tail-first-paint.spec.ts --config tests/playwright.config.ts --project electron-headful --workers=1\",\"ORCA_E2E_WEB_CLIENT=1 SKIP_BUILD=1 pnpm exec playwright test tests/e2e/paired-remote-terminal-stall-recovery.spec.ts --config tests/playwright.config.ts --project electron-headful --workers=1\",\"ORCA_E2E_WEB_CLIENT=1 SKIP_BUILD=1 pnpm exec playwright test tests/e2e/paired-remote-terminal-probe-gap-recovery.spec.ts --config tests/playwright.config.ts --project electron-headful --workers=1\",\"ORCA_E2E_WEB_CLIENT=1 SKIP_BUILD=1 pnpm exec playwright test tests/e2e/headless-paired-remote-terminal-stall-recovery.spec.ts --config tests/playwright.config.ts --project electron-headful --workers=1\",\"ORCA_E2E_WEB_CLIENT=1 pnpm exec playwright test tests/e2e/paired-remote-terminal-retention-memory.spec.ts --config tests/playwright.config.ts --project electron-headful --workers=1\",\"ORCA_E2E_WEB_CLIENT=1 SKIP_BUILD=1 pnpm exec playwright test tests/e2e/paired-remote-terminal-retention-memory.spec.ts --config tests/playwright.config.ts --project electron-headful --workers=1\",\"ORCA_E2E_WEB_CLIENT=1 SKIP_BUILD=1 pnpm exec playwright test tests/e2e/headless-paired-remote-terminal-retention-memory.spec.ts --config tests/playwright.config.ts --project electron-headless --workers=1\",\"SKIP_BUILD=1 pnpm exec playwright test tests/e2e/terminal-parked-memory.spec.ts --config tests/playwright.config.ts --project electron-headful --workers=1\"],\"testFiles\":[\"tests/e2e/session-tabs-decorative-title-fanout.unit.test.ts\",\"src/renderer/src/components/terminal-pane/parking/lifecycle/use-terminal-tab-cold-parking.test.ts\",\"src/main/runtime/construction/orca-runtime.test.ts\",\"src/renderer/src/web/web-preload-api-runtime-environment.test.ts\",\"src/main/ipc/runtime-environments/pairing/runtime-environments-pairing.test.ts\",\"src/main/runtime/rpc/terminal/terminal-multiplex-initial-snapshot-buffering.test.ts\",\"src/main/runtime/rpc/terminal/terminal-multiplex-pty-wait-capacity.test.ts\",\"src/main/runtime/rpc/terminal/terminal-subscribe-buffer.test.ts\",\"src/main/runtime/terminal/adoption/terminal-subscriber-driven-daemon-attach.test.ts\",\"src/main/runtime/session-tabs/runtime-inventory-publication-authority.test.ts\",\"src/main/runtime/rpc/methods/session-tabs/session-tabs-inventory-census-race.test.ts\",\"src/main/daemon/terminal-host/testing/terminal-host-agent-session.test.ts\",\"tests/e2e/session-tabs-empty-inventory-daemon-oracle.unit.test.ts\",\"src/renderer/src/components/terminal-pane/pty-transport/output/terminal-side-effect-facts-handler.test.ts\",\"src/renderer/src/components/terminal-pane/parking/output-watchers/terminal-parked-tab-watchers.test.ts\",\"src/renderer/src/runtime/rpc/subscriptions/runtime-client-events.test.ts\",\"src/renderer/src/components/terminal-pane/pty-transport/remote-runtime/remote-runtime-pty-transport-activation-inventory-fallback.test.ts\",\"src/shared/remote-runtime/control/remote-runtime-shared-control-connection.test.ts\",\"tests/e2e/paired-remote-terminal-lossy-initial-snapshot.spec.ts\",\"tests/e2e/paired-remote-terminal-truncated-tail-first-paint.spec.ts\",\"tests/e2e/paired-remote-terminal-stall-recovery.spec.ts\",\"tests/e2e/paired-remote-terminal-probe-gap-recovery.spec.ts\",\"tests/e2e/headless-paired-remote-terminal-stall-recovery.spec.ts\",\"tests/e2e/paired-remote-terminal-retention-memory.spec.ts\",\"tests/e2e/headless-paired-remote-terminal-retention-memory.spec.ts\",\"tests/e2e/terminal-parked-memory.spec.ts\",\"tests/e2e/paired-remote-terminal-host-restart-background-sync.spec.ts\",\"src/renderer/src/components/terminal-pane/pty-transport/remote-runtime/remote-runtime-pty-transport-unpublished-host-graph.test.ts\",\"tests/e2e/paired-remote-terminal-host-quit-reconnect-input.spec.ts\",\"src/main/runtime/terminal/query/runtime-terminal-inventory-contracts.test.ts\",\"tests/e2e/paired-client-first-terminal-unopened-host-worktree.spec.ts\"]}", "Audit5896 removes only the paired-settings.spec and dispatch-mailbox-delivery.spec import lines from their retained runtime/mailbox drivers. Those imported suites and alarms are intentionally retired, without equivalent replacement. Driver selectors remain; unchanged dated receipts retain original scope and do not establish a new whole-gate import-closure pass. ", "Audit5901 removes only the mobile-creation-and-orchestration-part-03.spec import from the retained runtime driver. The fragment's missing-handle wait abort and waiter retirement on reload-exit alarms are intentionally lost. This is a conservative import-closure notice: named command filters may exclude those cases. Driver selectors remain; unchanged historical receipts retain their original scope and establish no fresh whole-gate pass or equivalent replacement. ", - "Audit5916 removes the entire local-worktree-creation-part-02.spec import from the retained runtime driver, intentionally losing the mocked exact-name create refusal when a selected PR matches a remote branch. The sole zero-auth terminal-handle registrar for another deleted suite is also retired, with no authored credit. Driver selectors retain only their narrowed import scope. Unchanged dated independent receipts are not equivalent replacement or fresh whole-gate validation. " + "Audit5916 removes the entire local-worktree-creation-part-02.spec import from the retained runtime driver, intentionally losing the mocked exact-name create refusal when a selected PR matches a remote branch. The sole zero-auth terminal-handle registrar for another deleted suite is also retired, with no authored credit. Driver selectors retain only their narrowed import scope. Unchanged dated independent receipts are not equivalent replacement or fresh whole-gate validation. ", + "Audit5922 intentionally retires mixed split/agent parking eligibility classification; incorrect eligibility can unmount a still-needed terminal or hide resume, though the retired predicate suite never mounts or resumes the actual view. These narrow alarms are lost without equivalent replacement. Remaining selectors/assertions and dated evidenceRuns retain their original scope; no fresh validation or whole-gate replacement claim. Preserve complete historical narratives and earlier knownGaps verbatim." ], "demotionRule": "Keep experimental or demote to protection none if decorative title frequency changes paired client-event or session-tabs publication volume after convergence, a semantic fact is dropped, paired first paint is blank, passive work reconnects after manual disconnect, a capable hidden paired manager survives ordinary parking, a legacy hidden pane schedules raw xterm output or bypasses its fallback, reveal loses requested bounded history or live PTY identity, retained buffer cells do not fall, or either headed/headless scenario flakes." }, @@ -13205,7 +13206,7 @@ "providers": ["local-daemon", "ssh-daemon", "paired-runtime"], "coveredPlatforms": ["macos"], "coveredProviders": ["local-daemon", "paired-runtime"], - "coverageNotes": "Audit5879 retires the entire cold-parking hook suite and its stale exemption/park-set and unnecessary recomputation alarms. Remaining selectors are not equivalent replacement coverage; unchanged independent dated receipts retain their original scope and do not validate reduced commands. Historical prior account preserved verbatim: Audit5790 companion to audit5787: Retire split request routing: stable-leaf replay, reminting, host isolation, expiry/cancel/cap lease alarms intentionally lost. Narrow1 compound selector and remove1 testFiles and1 assertionRef. Complete dated evidenceRuns are unchanged; none selects these retired suites and none validates narrowed selectors. All unrelated remaining assertions and selectors retain their original scope, without replacement certification. No fresh execution or current import reachability result is claimed. Complete prior account preserved verbatim below as historical: Audit5668 integrates source audit5662: retire the whole sync-runtime-graph-parked-leaf.test.ts suite and its exact active selectors and assertionRef. Intentionally lose pre-handler PTY exit during the park handoff gap must drop the stale parked leaf from graph publication alarms without replacement. Remaining selectors retain only their own scope; no fresh execution, native/platform or remote evidence is claimed. Complete original selector fields are preserved in knownGaps. Historical prior account (preserved verbatim): Audit5631 accompanies Audit5617 whole-suite deletion of src/renderer/src/runtime/hosted-terminals/recovery/web-session-terminal-orphan-recovery-regressions.test.ts. Accepted loss: Degraded-frame latest-queue coalescing and fully-ready-frame supersession of held recovery. No equivalent replacement or fresh reduced-command validation is claimed. Retained partial protection applies only to independent historical receipt scopes and does not protect these retired alarms. Historical prior account follows: Audit5605 retires complete low-value suites src/renderer/src/runtime/hosted-terminals/recovery/web-session-terminal-orphan-recovery.test.ts. Intentionally lose serialization of newer convergence after an in-flight adoption conflict alarms. Reduced commands have no fresh gate evidence or equivalent replacement claim. Historical prior account follows: 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. The paired serve-restart file loses only the expensive automation-run-ID restart case. Its original terminal journey remains byte-identical: daemon/fixture process identity survives replacement serve, keyboard/output/grid/history/checkpoint converge and authoritative close removes the binding. LAYOUT_OWNER_BUILD gates its pending-handle assertion. Existing dated receipt objects and assertion references retain their original terminal-journey scope and provide no fresh validation of the reduced file selector. Audit3362 retires the whole orphan-recovery adoption-regressions suite, including thrown-adoption/post-adoption malformed or unavailable retries, prior-binding preservation, projected sibling retirement merging and blocked local-close/group-move fencing. Its compound unit token, test-file entry and assertion reference are removed. Injected inventory/adoption projections did not demonstrate usable input delivery. Two unrelated macOS E2E receipts remain verbatim; no equivalent replacement or fresh runtime/PTY/provider/UI/mobile/mixed-version/cross-platform evidence is claimed. Audit 3318 reduces web-session-terminal-pending-handle-recovery.test.ts, intentionally retiring disconnected retry, two-authoritative-absence retirement, explicit close-record short circuit, older-host disconnected absence, positive published-presence protection and unpublished-frame no-count alarms. Remove only the disconnected-retry assertion alias; preserve transient-retry assertion and both unchanged active Electron receipts. The remaining absence-reset interleaving is narrower, not an equivalent replacement for these six removed cases. Historical receipts retain their original scope. No fresh runtime, host/PTY/network, rendered, mobile, mixed-version, cross-platform, soak or measured-budget validation is claimed. Audit1939 (sources1934/1935): Pruned cold-parking hook and parked-watcher suites retain local timer/selection/split and exit/cancel/disposal progression. Lose supplied capability/eligibility/topology/admission and duplicate state examples recorded below. No assertion objects map to these sources here; preserve independent actual E2E receipt scopes without transferring their results to reduced units. 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): 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: 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): Deterministic policy and multiplex tests separate renderer parking from authoritative stream liveness, while runtime-graph tests cover exact parked leaf, pane runtime ID, title, multi-pane active-leaf, disposal behavior, and queued split routing to an exact cold-parked tab. A real Electron journey runs the shipped dev CLI against the app's isolated profile, proves the exact parked target alone remounts under a bounded lease, completes before the historical 10-second timeout without stealing active tab or focus, re-parks, then reveals two stable-identity panes with independent keyboard/output round trips. Focused mirror-recovery tests preserve a verified binding across pending-handle snapshots, quarantine positive PTY-identity mismatches, accept authoritative ready replacement or removal, and fence recovery to the pairing revision. Daemon attach-only tests prove a replacement runtime re-registers one active session and one history writer. Headed cold-park and headless runtime-restart paired journeys prove rendered output, input, resize convergence, process identity, authoritative close, checkpoint continuity, and post-restart history append against real daemon PTYs. The parked-leaf graph fixture now retains only PTY exit during the park handoff gap. Its standalone exact leaf/title, multi-pane active-leaf and disposal assertions were removed. web-runtime-session.test.ts no longer supplies the eager worktree-switch/post-create recovery assertion. Those alarms are lost; the remaining cold-park and recovery journeys do not establish equivalent replacement coverage. Recovery references retain old-host-to-new-tab mirroring, adoption/list recovery, blocked local ownership changes, coalescing/overtaking/global concurrency, adoption-conflict serialization and pane-resolution retries. Stable unsupported/malformed adoption tables, supplied inventory/topology/identity and verified-binding shape examples were removed. Their separate alarms are lost; remaining compositions are not equivalent coverage. Historical executed commands and results remain historical. The separate Unsubscribe-to-raw-subscriber-veto-clear sample was removed. Its exact raw-presence transition alarm is lost; remaining fake-provider streaming/attachment checks and real paired journeys do not establish equivalent replacement coverage. The deterministic second subscription is a second live connection, not a disconnect/reconnect proof. Audit1292: The entire orphan-inventory retry suite is removed. Unchanged-snapshot retry for temporarily absent, pending or attached PTYs, live-binding preservation, and consecutive-absence confirmation reset after a ready frame are lost. Mock adoption/list behavior and assembled snapshot handling did not establish actual orphan adoption or equivalent replacement coverage. Audit1342: src/renderer/src/runtime/web-session-terminal-orphan-recovery-regressions.test.ts reduced. Exact global RPC concurrency4/counts for fabricated worktrees. No equivalent replacement coverage is claimed.", + "coverageNotes": "Audit5922 intentionally retires mixed split/agent parking eligibility classification; incorrect eligibility can unmount a still-needed terminal or hide resume, though the retired predicate suite never mounts or resumes the actual view. These narrow alarms are lost without equivalent replacement. Remaining selectors/assertions and dated evidenceRuns retain their original scope; no fresh validation or whole-gate replacement claim. Preserve complete historical narratives and earlier knownGaps verbatim. Complete prior account retained verbatim: Audit5879 retires the entire cold-parking hook suite and its stale exemption/park-set and unnecessary recomputation alarms. Remaining selectors are not equivalent replacement coverage; unchanged independent dated receipts retain their original scope and do not validate reduced commands. Historical prior account preserved verbatim: Audit5790 companion to audit5787: Retire split request routing: stable-leaf replay, reminting, host isolation, expiry/cancel/cap lease alarms intentionally lost. Narrow1 compound selector and remove1 testFiles and1 assertionRef. Complete dated evidenceRuns are unchanged; none selects these retired suites and none validates narrowed selectors. All unrelated remaining assertions and selectors retain their original scope, without replacement certification. No fresh execution or current import reachability result is claimed. Complete prior account preserved verbatim below as historical: Audit5668 integrates source audit5662: retire the whole sync-runtime-graph-parked-leaf.test.ts suite and its exact active selectors and assertionRef. Intentionally lose pre-handler PTY exit during the park handoff gap must drop the stale parked leaf from graph publication alarms without replacement. Remaining selectors retain only their own scope; no fresh execution, native/platform or remote evidence is claimed. Complete original selector fields are preserved in knownGaps. Historical prior account (preserved verbatim): Audit5631 accompanies Audit5617 whole-suite deletion of src/renderer/src/runtime/hosted-terminals/recovery/web-session-terminal-orphan-recovery-regressions.test.ts. Accepted loss: Degraded-frame latest-queue coalescing and fully-ready-frame supersession of held recovery. No equivalent replacement or fresh reduced-command validation is claimed. Retained partial protection applies only to independent historical receipt scopes and does not protect these retired alarms. Historical prior account follows: Audit5605 retires complete low-value suites src/renderer/src/runtime/hosted-terminals/recovery/web-session-terminal-orphan-recovery.test.ts. Intentionally lose serialization of newer convergence after an in-flight adoption conflict alarms. Reduced commands have no fresh gate evidence or equivalent replacement claim. Historical prior account follows: 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. The paired serve-restart file loses only the expensive automation-run-ID restart case. Its original terminal journey remains byte-identical: daemon/fixture process identity survives replacement serve, keyboard/output/grid/history/checkpoint converge and authoritative close removes the binding. LAYOUT_OWNER_BUILD gates its pending-handle assertion. Existing dated receipt objects and assertion references retain their original terminal-journey scope and provide no fresh validation of the reduced file selector. Audit3362 retires the whole orphan-recovery adoption-regressions suite, including thrown-adoption/post-adoption malformed or unavailable retries, prior-binding preservation, projected sibling retirement merging and blocked local-close/group-move fencing. Its compound unit token, test-file entry and assertion reference are removed. Injected inventory/adoption projections did not demonstrate usable input delivery. Two unrelated macOS E2E receipts remain verbatim; no equivalent replacement or fresh runtime/PTY/provider/UI/mobile/mixed-version/cross-platform evidence is claimed. Audit 3318 reduces web-session-terminal-pending-handle-recovery.test.ts, intentionally retiring disconnected retry, two-authoritative-absence retirement, explicit close-record short circuit, older-host disconnected absence, positive published-presence protection and unpublished-frame no-count alarms. Remove only the disconnected-retry assertion alias; preserve transient-retry assertion and both unchanged active Electron receipts. The remaining absence-reset interleaving is narrower, not an equivalent replacement for these six removed cases. Historical receipts retain their original scope. No fresh runtime, host/PTY/network, rendered, mobile, mixed-version, cross-platform, soak or measured-budget validation is claimed. Audit1939 (sources1934/1935): Pruned cold-parking hook and parked-watcher suites retain local timer/selection/split and exit/cancel/disposal progression. Lose supplied capability/eligibility/topology/admission and duplicate state examples recorded below. No assertion objects map to these sources here; preserve independent actual E2E receipt scopes without transferring their results to reduced units. 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): 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: 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): Deterministic policy and multiplex tests separate renderer parking from authoritative stream liveness, while runtime-graph tests cover exact parked leaf, pane runtime ID, title, multi-pane active-leaf, disposal behavior, and queued split routing to an exact cold-parked tab. A real Electron journey runs the shipped dev CLI against the app's isolated profile, proves the exact parked target alone remounts under a bounded lease, completes before the historical 10-second timeout without stealing active tab or focus, re-parks, then reveals two stable-identity panes with independent keyboard/output round trips. Focused mirror-recovery tests preserve a verified binding across pending-handle snapshots, quarantine positive PTY-identity mismatches, accept authoritative ready replacement or removal, and fence recovery to the pairing revision. Daemon attach-only tests prove a replacement runtime re-registers one active session and one history writer. Headed cold-park and headless runtime-restart paired journeys prove rendered output, input, resize convergence, process identity, authoritative close, checkpoint continuity, and post-restart history append against real daemon PTYs. The parked-leaf graph fixture now retains only PTY exit during the park handoff gap. Its standalone exact leaf/title, multi-pane active-leaf and disposal assertions were removed. web-runtime-session.test.ts no longer supplies the eager worktree-switch/post-create recovery assertion. Those alarms are lost; the remaining cold-park and recovery journeys do not establish equivalent replacement coverage. Recovery references retain old-host-to-new-tab mirroring, adoption/list recovery, blocked local ownership changes, coalescing/overtaking/global concurrency, adoption-conflict serialization and pane-resolution retries. Stable unsupported/malformed adoption tables, supplied inventory/topology/identity and verified-binding shape examples were removed. Their separate alarms are lost; remaining compositions are not equivalent coverage. Historical executed commands and results remain historical. The separate Unsubscribe-to-raw-subscriber-veto-clear sample was removed. Its exact raw-presence transition alarm is lost; remaining fake-provider streaming/attachment checks and real paired journeys do not establish equivalent replacement coverage. The deterministic second subscription is a second live connection, not a disconnect/reconnect proof. Audit1292: The entire orphan-inventory retry suite is removed. Unchanged-snapshot retry for temporarily absent, pending or attached PTYs, live-binding preservation, and consecutive-absence confirmation reset after a ready frame are lost. Mock adoption/list behavior and assembled snapshot handling did not establish actual orphan adoption or equivalent replacement coverage. Audit1342: src/renderer/src/runtime/web-session-terminal-orphan-recovery-regressions.test.ts reduced. Exact global RPC concurrency4/counts for fabricated worktrees. No equivalent replacement coverage is claimed.", "motivatingLinks": [ "https://linear.app/stably/issue/STA-2854", "https://github.com/stablyai/orca/pull/15514", @@ -13213,16 +13214,15 @@ "https://github.com/stablyai/orca/issues/17297" ], "invariant": "Cold parking or restarting a host renderer/runtime never retires a live PTY's runtime-graph leaf, erases a paired viewer's last verified leaf binding merely because the host temporarily publishes pending-handle, or drops the surviving PTY's history writer. A split request for a cold-parked tab replays against its stable source leaf after exact-tab remount without switching workspaces or focusing the tab. The paired stream, input, resize, pane identity, multi-pane routing, checkpoint, and output log converge to the authoritative ready handle; the binding clears only after positive replacement, mismatch, or two consecutive authoritative absence observations without an intervening ready surface.", - "oracle": "Audit5879 retires the entire cold-parking hook suite and its stale exemption/park-set and unnecessary recomputation alarms. Remaining selectors are not equivalent replacement coverage; unchanged independent dated receipts retain their original scope and do not validate reduced commands. Historical prior account preserved verbatim: Audit5790 companion to audit5787: Retire split request routing: stable-leaf replay, reminting, host isolation, expiry/cancel/cap lease alarms intentionally lost. Narrow1 compound selector and remove1 testFiles and1 assertionRef. Complete dated evidenceRuns are unchanged; none selects these retired suites and none validates narrowed selectors. All unrelated remaining assertions and selectors retain their original scope, without replacement certification. No fresh execution or current import reachability result is claimed. Complete prior account preserved verbatim below as historical: Audit5668 integrates source audit5662: retire the whole sync-runtime-graph-parked-leaf.test.ts suite and its exact active selectors and assertionRef. Intentionally lose pre-handler PTY exit during the park handoff gap must drop the stale parked leaf from graph publication alarms without replacement. Remaining selectors retain only their own scope; no fresh execution, native/platform or remote evidence is claimed. Complete original selector fields are preserved in knownGaps. Historical prior account (preserved verbatim): Audit5631 accompanies Audit5617 whole-suite deletion of src/renderer/src/runtime/hosted-terminals/recovery/web-session-terminal-orphan-recovery-regressions.test.ts. Accepted loss: Degraded-frame latest-queue coalescing and fully-ready-frame supersession of held recovery. No equivalent replacement or fresh reduced-command validation is claimed. Retained partial protection applies only to independent historical receipt scopes and does not protect these retired alarms. Historical prior account follows: 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. The paired serve-restart file loses only the expensive automation-run-ID restart case. Its original terminal journey remains byte-identical: daemon/fixture process identity survives replacement serve, keyboard/output/grid/history/checkpoint converge and authoritative close removes the binding. LAYOUT_OWNER_BUILD gates its pending-handle assertion. Existing dated receipt objects and assertion references retain their original terminal-journey scope and provide no fresh validation of the reduced file selector. Audit3362 retires the whole orphan-recovery adoption-regressions suite, including thrown-adoption/post-adoption malformed or unavailable retries, prior-binding preservation, projected sibling retirement merging and blocked local-close/group-move fencing. Its compound unit token, test-file entry and assertion reference are removed. Injected inventory/adoption projections did not demonstrate usable input delivery. Two unrelated macOS E2E receipts remain verbatim; no equivalent replacement or fresh runtime/PTY/provider/UI/mobile/mixed-version/cross-platform evidence is claimed. Audit 3318 reduces web-session-terminal-pending-handle-recovery.test.ts, intentionally retiring disconnected retry, two-authoritative-absence retirement, explicit close-record short circuit, older-host disconnected absence, positive published-presence protection and unpublished-frame no-count alarms. Remove only the disconnected-retry assertion alias; preserve transient-retry assertion and both unchanged active Electron receipts. The remaining absence-reset interleaving is narrower, not an equivalent replacement for these six removed cases. Historical receipts retain their original scope. No fresh runtime, host/PTY/network, rendered, mobile, mixed-version, cross-platform, soak or measured-budget validation is claimed. Audit1939 (sources1934/1935): Pruned cold-parking hook and parked-watcher suites retain local timer/selection/split and exit/cancel/disposal progression. Lose supplied capability/eligibility/topology/admission and duplicate state examples recorded below. No assertion objects map to these sources here; preserve independent actual E2E receipt scopes without transferring their results to reduced units. 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): 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): Cold-park a host-owned pane while a paired client actively views it, require the host manager to unmount, then type through the client and require the same PTY to receive and echo the token without any disconnected sample. Restart a real pinned-port headless runtime while its daemon PTY survives, observe a pending-handle snapshot, require the viewer binding never to become empty, then require rendered output, focused keyboard input, a post-recovery window resize, the pre-restart checkpoint, and post-restart output-log append to reach the same PTY and process before authoritative close clears the binding. Invoke the real `orca-dev terminal split` against a cold-parked renderer-owned tab, require only that tab to acquire and release the existing background-mount lease, complete before the historical timeout, preserve the active worktree/tab/focus, then reveal two rendered panes and type through each while retaining the stable source leaf and PTY. Deterministically require synchronous stable-leaf replay after lifecycle registration and fail closed for a missing or stale leaf. Separately publish multi-pane parked leaves with exact pane runtime IDs and require per-PTY disposal to remove only the retired leaf.", + "oracle": "Audit5922 intentionally retires mixed split/agent parking eligibility classification; incorrect eligibility can unmount a still-needed terminal or hide resume, though the retired predicate suite never mounts or resumes the actual view. These narrow alarms are lost without equivalent replacement. Remaining selectors/assertions and dated evidenceRuns retain their original scope; no fresh validation or whole-gate replacement claim. Preserve complete historical narratives and earlier knownGaps verbatim. Complete prior account retained verbatim: Audit5879 retires the entire cold-parking hook suite and its stale exemption/park-set and unnecessary recomputation alarms. Remaining selectors are not equivalent replacement coverage; unchanged independent dated receipts retain their original scope and do not validate reduced commands. Historical prior account preserved verbatim: Audit5790 companion to audit5787: Retire split request routing: stable-leaf replay, reminting, host isolation, expiry/cancel/cap lease alarms intentionally lost. Narrow1 compound selector and remove1 testFiles and1 assertionRef. Complete dated evidenceRuns are unchanged; none selects these retired suites and none validates narrowed selectors. All unrelated remaining assertions and selectors retain their original scope, without replacement certification. No fresh execution or current import reachability result is claimed. Complete prior account preserved verbatim below as historical: Audit5668 integrates source audit5662: retire the whole sync-runtime-graph-parked-leaf.test.ts suite and its exact active selectors and assertionRef. Intentionally lose pre-handler PTY exit during the park handoff gap must drop the stale parked leaf from graph publication alarms without replacement. Remaining selectors retain only their own scope; no fresh execution, native/platform or remote evidence is claimed. Complete original selector fields are preserved in knownGaps. Historical prior account (preserved verbatim): Audit5631 accompanies Audit5617 whole-suite deletion of src/renderer/src/runtime/hosted-terminals/recovery/web-session-terminal-orphan-recovery-regressions.test.ts. Accepted loss: Degraded-frame latest-queue coalescing and fully-ready-frame supersession of held recovery. No equivalent replacement or fresh reduced-command validation is claimed. Retained partial protection applies only to independent historical receipt scopes and does not protect these retired alarms. Historical prior account follows: 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. The paired serve-restart file loses only the expensive automation-run-ID restart case. Its original terminal journey remains byte-identical: daemon/fixture process identity survives replacement serve, keyboard/output/grid/history/checkpoint converge and authoritative close removes the binding. LAYOUT_OWNER_BUILD gates its pending-handle assertion. Existing dated receipt objects and assertion references retain their original terminal-journey scope and provide no fresh validation of the reduced file selector. Audit3362 retires the whole orphan-recovery adoption-regressions suite, including thrown-adoption/post-adoption malformed or unavailable retries, prior-binding preservation, projected sibling retirement merging and blocked local-close/group-move fencing. Its compound unit token, test-file entry and assertion reference are removed. Injected inventory/adoption projections did not demonstrate usable input delivery. Two unrelated macOS E2E receipts remain verbatim; no equivalent replacement or fresh runtime/PTY/provider/UI/mobile/mixed-version/cross-platform evidence is claimed. Audit 3318 reduces web-session-terminal-pending-handle-recovery.test.ts, intentionally retiring disconnected retry, two-authoritative-absence retirement, explicit close-record short circuit, older-host disconnected absence, positive published-presence protection and unpublished-frame no-count alarms. Remove only the disconnected-retry assertion alias; preserve transient-retry assertion and both unchanged active Electron receipts. The remaining absence-reset interleaving is narrower, not an equivalent replacement for these six removed cases. Historical receipts retain their original scope. No fresh runtime, host/PTY/network, rendered, mobile, mixed-version, cross-platform, soak or measured-budget validation is claimed. Audit1939 (sources1934/1935): Pruned cold-parking hook and parked-watcher suites retain local timer/selection/split and exit/cancel/disposal progression. Lose supplied capability/eligibility/topology/admission and duplicate state examples recorded below. No assertion objects map to these sources here; preserve independent actual E2E receipt scopes without transferring their results to reduced units. 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): 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): Cold-park a host-owned pane while a paired client actively views it, require the host manager to unmount, then type through the client and require the same PTY to receive and echo the token without any disconnected sample. Restart a real pinned-port headless runtime while its daemon PTY survives, observe a pending-handle snapshot, require the viewer binding never to become empty, then require rendered output, focused keyboard input, a post-recovery window resize, the pre-restart checkpoint, and post-restart output-log append to reach the same PTY and process before authoritative close clears the binding. Invoke the real `orca-dev terminal split` against a cold-parked renderer-owned tab, require only that tab to acquire and release the existing background-mount lease, complete before the historical timeout, preserve the active worktree/tab/focus, then reveal two rendered panes and type through each while retaining the stable source leaf and PTY. Deterministically require synchronous stable-leaf replay after lifecycle registration and fail closed for a missing or stale leaf. Separately publish multi-pane parked leaves with exact pane runtime IDs and require per-PTY disposal to remove only the retired leaf.", "commands": [ - "pnpm exec vitest run --config config/vitest.config.ts src/renderer/src/components/terminal-pane/parking/output-watchers/terminal-parked-tab-watchers.test.ts src/renderer/src/hooks/ipc-events/terminal-ui-routing-ipc-bridge-split.test.ts src/main/runtime/terminal/layout/orca-runtime-terminal-split-authority.test.ts src/renderer/src/runtime/hosted-terminals/recovery/web-session-terminal-orphan-mixed-version.test.ts src/renderer/src/runtime/hosted-terminals/recovery/panes/web-session-terminal-pending-handle-recovery.test.ts tests/e2e/host-cold-park-remote-subscriber.unit.test.ts --reporter=dot", + "pnpm exec vitest run --config config/vitest.config.ts src/renderer/src/hooks/ipc-events/terminal-ui-routing-ipc-bridge-split.test.ts src/main/runtime/terminal/layout/orca-runtime-terminal-split-authority.test.ts src/renderer/src/runtime/hosted-terminals/recovery/web-session-terminal-orphan-mixed-version.test.ts src/renderer/src/runtime/hosted-terminals/recovery/panes/web-session-terminal-pending-handle-recovery.test.ts tests/e2e/host-cold-park-remote-subscriber.unit.test.ts --reporter=dot", "pnpm exec vitest run --config config/vitest.config.ts src/main/daemon/providers/adapter/testing/daemon-pty-adapter-cold-restore-reanchor.test.ts src/main/daemon/providers/adapter/testing/daemon-pty-adapter-session-adoption.test.ts src/main/daemon/providers/adapter/testing/daemon-pty-adapter-protocol-compatibility.test.ts src/main/daemon/providers/adapter/testing/daemon-pty-adapter-history-recovery.test.ts --reporter=dot", "pnpm exec playwright test tests/e2e/host-parked-pane-remote-viewer.spec.ts --config tests/playwright.config.ts --project electron-headless --workers=1", "pnpm exec playwright test tests/e2e/terminal-parked-cli-split.spec.ts --config tests/playwright.config.ts --project electron-headless --workers=1", "pnpm exec playwright test tests/e2e/paired-remote-terminal-serve-restart-binding.spec.ts --config tests/playwright.config.ts --project electron-headless --workers=1" ], "testFiles": [ - "src/renderer/src/components/terminal-pane/parking/output-watchers/terminal-parked-tab-watchers.test.ts", "src/renderer/src/hooks/ipc-events/terminal-ui-routing-ipc-bridge-split.test.ts", "src/main/runtime/terminal/layout/orca-runtime-terminal-split-authority.test.ts", "src/renderer/src/runtime/hosted-terminals/recovery/web-session-terminal-orphan-mixed-version.test.ts", @@ -13355,7 +13355,8 @@ "Audit5790 exact original complete commands JSON value, preserved verbatim as historical selector metadata; changed selectors have no new validation:\n[\n \"pnpm exec vitest run --config config/vitest.config.ts src/renderer/src/components/terminal-pane/parking/output-watchers/terminal-parked-tab-watchers.test.ts src/renderer/src/components/terminal-pane/layout/split/terminal-pane-split-request-routing.test.ts src/renderer/src/components/terminal-pane/parking/lifecycle/use-terminal-tab-cold-parking.test.ts src/renderer/src/hooks/ipc-events/terminal-ui-routing-ipc-bridge-split.test.ts src/main/runtime/terminal/layout/orca-runtime-terminal-split-authority.test.ts src/renderer/src/runtime/hosted-terminals/recovery/web-session-terminal-orphan-mixed-version.test.ts src/renderer/src/runtime/hosted-terminals/recovery/panes/web-session-terminal-pending-handle-recovery.test.ts tests/e2e/host-cold-park-remote-subscriber.unit.test.ts --reporter=dot\",\n \"pnpm exec vitest run --config config/vitest.config.ts src/main/daemon/providers/adapter/testing/daemon-pty-adapter-cold-restore-reanchor.test.ts src/main/daemon/providers/adapter/testing/daemon-pty-adapter-session-adoption.test.ts src/main/daemon/providers/adapter/testing/daemon-pty-adapter-protocol-compatibility.test.ts src/main/daemon/providers/adapter/testing/daemon-pty-adapter-history-recovery.test.ts --reporter=dot\",\n \"pnpm exec playwright test tests/e2e/host-parked-pane-remote-viewer.spec.ts --config tests/playwright.config.ts --project electron-headless --workers=1\",\n \"pnpm exec playwright test tests/e2e/terminal-parked-cli-split.spec.ts --config tests/playwright.config.ts --project electron-headless --workers=1\",\n \"pnpm exec playwright test tests/e2e/paired-remote-terminal-serve-restart-binding.spec.ts --config tests/playwright.config.ts --project electron-headless --workers=1\"\n ]", "Audit5790 exact original complete testFiles JSON value, preserved verbatim as historical selector metadata; changed selectors have no new validation:\n[\n \"src/renderer/src/components/terminal-pane/parking/output-watchers/terminal-parked-tab-watchers.test.ts\",\n \"src/renderer/src/components/terminal-pane/layout/split/terminal-pane-split-request-routing.test.ts\",\n \"src/renderer/src/components/terminal-pane/parking/lifecycle/use-terminal-tab-cold-parking.test.ts\",\n \"src/renderer/src/hooks/ipc-events/terminal-ui-routing-ipc-bridge-split.test.ts\",\n \"src/main/runtime/terminal/layout/orca-runtime-terminal-split-authority.test.ts\",\n \"src/renderer/src/runtime/hosted-terminals/recovery/web-session-terminal-orphan-mixed-version.test.ts\",\n \"src/renderer/src/runtime/hosted-terminals/recovery/panes/web-session-terminal-pending-handle-recovery.test.ts\",\n \"src/main/daemon/providers/adapter/testing/daemon-pty-adapter-cold-restore-reanchor.test.ts\",\n \"src/main/daemon/providers/adapter/testing/daemon-pty-adapter-session-adoption.test.ts\",\n \"src/main/daemon/providers/adapter/testing/daemon-pty-adapter-protocol-compatibility.test.ts\",\n \"src/main/daemon/providers/adapter/testing/daemon-pty-adapter-history-recovery.test.ts\",\n \"tests/e2e/host-cold-park-remote-subscriber.unit.test.ts\",\n \"tests/e2e/host-parked-pane-remote-viewer.spec.ts\",\n \"tests/e2e/terminal-parked-cli-split.spec.ts\",\n \"tests/e2e/paired-remote-terminal-serve-restart-binding.spec.ts\"\n ]", "Audit5790 exact original complete assertionRefs JSON value, preserved verbatim as historical selector metadata; changed selectors have no new validation:\n[\n {\n \"file\": \"src/renderer/src/components/terminal-pane/layout/split/terminal-pane-split-request-routing.test.ts\",\n \"assertions\": [\n \"a cold-parked split request acquires only the exact tab's background-mount lease and replays synchronously on lifecycle registration\",\n \"a reminted numeric pane ID resolves through the stable source leaf while a missing or stale leaf fails closed\",\n \"expired, canceled, closed-tab, and overflowed requests release their bounded queue and lease state\"\n ]\n },\n {\n \"file\": \"tests/e2e/host-cold-park-remote-subscriber.unit.test.ts\",\n \"assertions\": [\n \"a fully unmounted host renderer still streams, accepts input, and resubscribes\"\n ]\n },\n {\n \"file\": \"tests/e2e/host-parked-pane-remote-viewer.spec.ts\",\n \"assertions\": [\n \"a cold-parked host pane carries a complete paired-client input and echo round trip\"\n ]\n },\n {\n \"file\": \"tests/e2e/terminal-parked-cli-split.spec.ts\",\n \"assertions\": [\n \"the shipped dev CLI completes an exact parked-tab split before the historical 10-second timeout\",\n \"only the parked target mounts under the bounded lease while the decoy worktree, tab, active leaf, and keyboard focus stay unchanged\",\n \"the target re-parks, then reveals two visible panes with the stable source leaf, PTY, and handle intact\",\n \"both the source and created pane accept scoped keyboard input and render independently generated output\"\n ]\n },\n {\n \"file\": \"tests/e2e/paired-remote-terminal-serve-restart-binding.spec.ts\",\n \"assertions\": [\n \"a real headless runtime restart never empties the viewer's verified binding while the daemon PTY survives\",\n \"rendered output, focused input, and resized grid delivery converge after the replacement runtime is ready\",\n \"the original fixture process survives while its pre-restart checkpoint and post-restart history append remain durable\",\n \"authoritative tab close removes the viewer binding\"\n ]\n },\n {\n \"file\": \"src/renderer/src/runtime/hosted-terminals/recovery/web-session-terminal-orphan-mixed-version.test.ts\",\n \"assertions\": [\"mirrors a new CLI tab after old-host recovery when $name\"]\n },\n {\n \"file\": \"src/renderer/src/runtime/hosted-terminals/recovery/panes/web-session-terminal-pending-handle-recovery.test.ts\",\n \"assertions\": [\n \"retries a transient pane-resolution failure for an unchanged replayed snapshot\"\n ]\n }\n ]", - "Audit5879 retired cold-parking selector metadata; complete original commands/testFiles preserved as history: {\"commands\":[\"pnpm exec vitest run --config config/vitest.config.ts src/renderer/src/components/terminal-pane/parking/output-watchers/terminal-parked-tab-watchers.test.ts src/renderer/src/components/terminal-pane/parking/lifecycle/use-terminal-tab-cold-parking.test.ts src/renderer/src/hooks/ipc-events/terminal-ui-routing-ipc-bridge-split.test.ts src/main/runtime/terminal/layout/orca-runtime-terminal-split-authority.test.ts src/renderer/src/runtime/hosted-terminals/recovery/web-session-terminal-orphan-mixed-version.test.ts src/renderer/src/runtime/hosted-terminals/recovery/panes/web-session-terminal-pending-handle-recovery.test.ts tests/e2e/host-cold-park-remote-subscriber.unit.test.ts --reporter=dot\",\"pnpm exec vitest run --config config/vitest.config.ts src/main/daemon/providers/adapter/testing/daemon-pty-adapter-cold-restore-reanchor.test.ts src/main/daemon/providers/adapter/testing/daemon-pty-adapter-session-adoption.test.ts src/main/daemon/providers/adapter/testing/daemon-pty-adapter-protocol-compatibility.test.ts src/main/daemon/providers/adapter/testing/daemon-pty-adapter-history-recovery.test.ts --reporter=dot\",\"pnpm exec playwright test tests/e2e/host-parked-pane-remote-viewer.spec.ts --config tests/playwright.config.ts --project electron-headless --workers=1\",\"pnpm exec playwright test tests/e2e/terminal-parked-cli-split.spec.ts --config tests/playwright.config.ts --project electron-headless --workers=1\",\"pnpm exec playwright test tests/e2e/paired-remote-terminal-serve-restart-binding.spec.ts --config tests/playwright.config.ts --project electron-headless --workers=1\"],\"testFiles\":[\"src/renderer/src/components/terminal-pane/parking/output-watchers/terminal-parked-tab-watchers.test.ts\",\"src/renderer/src/components/terminal-pane/parking/lifecycle/use-terminal-tab-cold-parking.test.ts\",\"src/renderer/src/hooks/ipc-events/terminal-ui-routing-ipc-bridge-split.test.ts\",\"src/main/runtime/terminal/layout/orca-runtime-terminal-split-authority.test.ts\",\"src/renderer/src/runtime/hosted-terminals/recovery/web-session-terminal-orphan-mixed-version.test.ts\",\"src/renderer/src/runtime/hosted-terminals/recovery/panes/web-session-terminal-pending-handle-recovery.test.ts\",\"src/main/daemon/providers/adapter/testing/daemon-pty-adapter-cold-restore-reanchor.test.ts\",\"src/main/daemon/providers/adapter/testing/daemon-pty-adapter-session-adoption.test.ts\",\"src/main/daemon/providers/adapter/testing/daemon-pty-adapter-protocol-compatibility.test.ts\",\"src/main/daemon/providers/adapter/testing/daemon-pty-adapter-history-recovery.test.ts\",\"tests/e2e/host-cold-park-remote-subscriber.unit.test.ts\",\"tests/e2e/host-parked-pane-remote-viewer.spec.ts\",\"tests/e2e/terminal-parked-cli-split.spec.ts\",\"tests/e2e/paired-remote-terminal-serve-restart-binding.spec.ts\"]}" + "Audit5879 retired cold-parking selector metadata; complete original commands/testFiles preserved as history: {\"commands\":[\"pnpm exec vitest run --config config/vitest.config.ts src/renderer/src/components/terminal-pane/parking/output-watchers/terminal-parked-tab-watchers.test.ts src/renderer/src/components/terminal-pane/parking/lifecycle/use-terminal-tab-cold-parking.test.ts src/renderer/src/hooks/ipc-events/terminal-ui-routing-ipc-bridge-split.test.ts src/main/runtime/terminal/layout/orca-runtime-terminal-split-authority.test.ts src/renderer/src/runtime/hosted-terminals/recovery/web-session-terminal-orphan-mixed-version.test.ts src/renderer/src/runtime/hosted-terminals/recovery/panes/web-session-terminal-pending-handle-recovery.test.ts tests/e2e/host-cold-park-remote-subscriber.unit.test.ts --reporter=dot\",\"pnpm exec vitest run --config config/vitest.config.ts src/main/daemon/providers/adapter/testing/daemon-pty-adapter-cold-restore-reanchor.test.ts src/main/daemon/providers/adapter/testing/daemon-pty-adapter-session-adoption.test.ts src/main/daemon/providers/adapter/testing/daemon-pty-adapter-protocol-compatibility.test.ts src/main/daemon/providers/adapter/testing/daemon-pty-adapter-history-recovery.test.ts --reporter=dot\",\"pnpm exec playwright test tests/e2e/host-parked-pane-remote-viewer.spec.ts --config tests/playwright.config.ts --project electron-headless --workers=1\",\"pnpm exec playwright test tests/e2e/terminal-parked-cli-split.spec.ts --config tests/playwright.config.ts --project electron-headless --workers=1\",\"pnpm exec playwright test tests/e2e/paired-remote-terminal-serve-restart-binding.spec.ts --config tests/playwright.config.ts --project electron-headless --workers=1\"],\"testFiles\":[\"src/renderer/src/components/terminal-pane/parking/output-watchers/terminal-parked-tab-watchers.test.ts\",\"src/renderer/src/components/terminal-pane/parking/lifecycle/use-terminal-tab-cold-parking.test.ts\",\"src/renderer/src/hooks/ipc-events/terminal-ui-routing-ipc-bridge-split.test.ts\",\"src/main/runtime/terminal/layout/orca-runtime-terminal-split-authority.test.ts\",\"src/renderer/src/runtime/hosted-terminals/recovery/web-session-terminal-orphan-mixed-version.test.ts\",\"src/renderer/src/runtime/hosted-terminals/recovery/panes/web-session-terminal-pending-handle-recovery.test.ts\",\"src/main/daemon/providers/adapter/testing/daemon-pty-adapter-cold-restore-reanchor.test.ts\",\"src/main/daemon/providers/adapter/testing/daemon-pty-adapter-session-adoption.test.ts\",\"src/main/daemon/providers/adapter/testing/daemon-pty-adapter-protocol-compatibility.test.ts\",\"src/main/daemon/providers/adapter/testing/daemon-pty-adapter-history-recovery.test.ts\",\"tests/e2e/host-cold-park-remote-subscriber.unit.test.ts\",\"tests/e2e/host-parked-pane-remote-viewer.spec.ts\",\"tests/e2e/terminal-parked-cli-split.spec.ts\",\"tests/e2e/paired-remote-terminal-serve-restart-binding.spec.ts\"]}", + "Audit5922 intentionally retires mixed split/agent parking eligibility classification; incorrect eligibility can unmount a still-needed terminal or hide resume, though the retired predicate suite never mounts or resumes the actual view. These narrow alarms are lost without equivalent replacement. Remaining selectors/assertions and dated evidenceRuns retain their original scope; no fresh validation or whole-gate replacement claim. Preserve complete historical narratives and earlier knownGaps verbatim." ], "demotionRule": "Demote if a live parked/restarting PTY loses its exact graph leaf or verified viewer binding, a retired PTY remains published, multi-pane identity drifts, or either routed client round trip flakes without a diagnosed cause." }, diff --git a/config/scripts/ci/e2e-selection/ci-e2e-job-selection.test.mjs b/config/scripts/ci/e2e-selection/ci-e2e-job-selection.test.mjs deleted file mode 100644 index 3ec995f0b2a..00000000000 --- a/config/scripts/ci/e2e-selection/ci-e2e-job-selection.test.mjs +++ /dev/null @@ -1,23 +0,0 @@ -import { expect, it } from 'vitest' -import { runProcess } from '@orca/process-host' - -it('publishes conservative hints for malformed evidence and refuses a malformed consumer list', async () => { - const program = 'config/scripts/ci/e2e-selection/ci-e2e-job-selection.mjs' - const consumer = await runProcess({ - program: process.execPath, - args: [program], - input: 'malformed', - timeoutMs: 10000 - }) - expect(consumer.code).not.toBe(0) - const hints = await runProcess({ - program: process.execPath, - args: [program, '--job-outputs'], - input: 'malformed', - timeoutMs: 10000 - }) - expect(hints.code, hints.stderr).toBe(0) - expect(hints.stdout).toBe( - 'e2e_run_changed=true\ne2e_needs_build=true\ne2e_ssh_shards=["1/2","2/2"]\n' - ) -}) diff --git a/config/scripts/ci/sharding/ci-shard-timings.json b/config/scripts/ci/sharding/ci-shard-timings.json index 9d560182ff6..71eb2fbc6a3 100644 --- a/config/scripts/ci/sharding/ci-shard-timings.json +++ b/config/scripts/ci/sharding/ci-shard-timings.json @@ -37,7 +37,6 @@ "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, - "config/scripts/ci/e2e-selection/ci-e2e-job-selection.test.mjs": 273, "config/scripts/ci/e2e-selection/ci-e2e-shard-selection.test.mjs": 2772, "config/scripts/ci/workflow-contracts/ci-managed-ssh-execution.test.mjs": 844, "config/scripts/ci/workflow-contracts/ci-native-toolchain.test.mjs": 109, @@ -384,7 +383,6 @@ "src/main/acp/history/acp-history-scaling.test.ts": 24879, "src/main/persistence/preferences/active-view-persistence-boundary.test.ts": 2119, "src/main/persistence/preferences/active-view-preference-sync-flush-veto.test.ts": 781, - "src/main/agent-hooks/tool-events/agent-tool-plugin-hooks.test.ts": 202, "src/main/agent-hooks/installation/scripts/cursor-replay-guard.test.ts": 403, "src/main/agent-hooks/server/testing/reconciliation/ended-process-reconciliation.test.ts": 775, "src/main/agent-hooks/first-work/first-work-branch-rename-wsl-move.test.ts": 831, @@ -1047,14 +1045,12 @@ "src/main/computer/macos-permissions/macos-computer-use-permission-status-cleanup.integration.test.ts": 65, "src/main/computer/macos-native/macos-native-provider-client.test.ts": 1210, "src/main/computer/sidecar-transport/sidecar-client.test.ts": 121, - "src/main/computer/desktop-script/runtime-host/windows-powershell-execution-policy.test.ts": 46, "src/main/connector-cloud/connector-hello.test.ts": 126, "src/main/connector-cloud/connector-places.test.ts": 345, "src/main/connector-cloud/connector-poll-client.test.ts": 874, "src/main/connector-cloud/connector-snapshot.test.ts": 126, "src/main/connector-cloud/connector-turn-events.test.ts": 411, "src/main/copilot/hook-service.test.ts": 180, - "src/main/crash-reporting/breadcrumbs/crash-breadcrumb-store-orphan-cleanup.test.ts": 81, "src/main/crash-reporting/reports/crash-report-store.test.ts": 438, "src/main/crash-reporting/minidumps/minidump-crash-signature.test.ts": 87, "src/main/crash-reporting/memory/renderer-heap-allocation-sites.test.ts": 62, @@ -1192,7 +1188,6 @@ "src/main/daemon/emulation/testing/serialize-grid.differential.fuzz.test.ts": 586, "src/main/daemon/sessions/testing/session-conpty-resize-history.test.ts": 270, "src/main/daemon/sessions/testing/session-conpty-resize-transcript.test.ts": 241, - "src/main/daemon/sessions/testing/session-pending-output.test.ts": 326, "src/main/daemon/sessions/testing/session-reset-input-modes.test.ts": 200, "src/main/daemon/sessions/testing/session-shell-ready-interactive-rc.node-pty.test.ts": 643, "src/main/daemon/sessions/testing/session-shell-recovery.test.ts": 288, @@ -1450,9 +1445,7 @@ "src/main/host/deferred-secret-protection-report.test.ts": 81, "src/main/host/electron-manual-redirect-fetch.test.ts": 52, "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, - "src/main/credentials/integration-state-file-cache.test.ts": 47, "src/main/credentials/integration-token-file-cache.test.ts": 152, "src/main/ipc/account-sign-in-link-opener.test.ts": 128, "src/main/ipc/agent-hooks.test.ts": 736, @@ -1603,7 +1596,6 @@ "src/main/ipc/ssh/ssh-connect-decision-cancellation.test.ts": 6414, "src/main/ipc/ssh/ssh-credential-cancel.test.ts": 4604, "src/main/ipc/ssh/ssh-host-user-disconnect.test.ts": 4734, - "src/main/ipc/ssh/ssh-passphrase.test.ts": 135, "src/main/ipc/terminal-render-desync-evidence.test.ts": 78, "src/main/workspaces/removal/watcher-removal-gate.test.ts": 384, "src/main/ipc/workspace-cleanup/workspace-cleanup-activity.test.ts": 76, @@ -1738,7 +1730,6 @@ "src/main/native-chat/agent-session-journal/outcomes/journal-outcome-sweeper.test.ts": 503, "src/main/native-chat/agent-session-journal/replay/journal-outcome-wire.test.ts": 543, "src/main/native-chat/agent-session-journal/store-lifecycle/journal-queued-message-contracts.test.ts": 3279, - "src/main/native-chat/agent-session-journal/projection/journal-reducer-rejection-fact.test.ts": 278, "src/main/native-chat/agent-session-journal/projection/journal-rejected-message-placement.test.ts": 369, "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, @@ -2310,7 +2301,6 @@ "src/main/runtime/terminal/surface/orca-runtime-terminal-close-no-widening-layout-owner.test.ts": 4997, "src/main/runtime/terminal/surface/orca-runtime-terminal-close-no-widening.test.ts": 4509, "src/main/runtime/terminal/surface/orca-runtime-terminal-close-records.test.ts": 7575, - "src/main/runtime/terminal/launch/orca-runtime-terminal-create-replay-after-close.test.ts": 4654, "src/main/runtime/terminal/identity/orca-runtime-terminal-handle-incarnation.test.ts": 4449, "src/main/runtime/terminal/title/orca-runtime-terminal-rename-retention.test.ts": 5757, "src/main/runtime/terminal/surface/orca-runtime-terminal-retirement.test.ts": 3714, @@ -2962,7 +2952,6 @@ "src/main/ssh/host-keys/ssh-host-key-store.test.ts": 238, "src/main/ssh/host-keys/ssh-host-key-verifier.test.ts": 97, "src/main/ssh/host-server/ssh-host-server-on-connect-held-move.test.ts": 510, - "src/main/ssh/host-server/ssh-host-server-on-connect-node-download.test.ts": 455, "src/main/ssh/host-server/ssh-host-server-on-connect.test.ts": 536, "src/main/ssh/host-server/ssh-host-server-telemetry.test.ts": 194, "src/main/ssh/authentication/ssh-identity-file-read.test.ts": 111, @@ -3134,9 +3123,7 @@ "src/main/persistence/moving-wsl-projects/quiescence/wsl-approved-root-race.wsl.test.ts": 102, "src/main/wsl/discovery/wsl-background-distro-gate.test.ts": 674, "src/main/wsl/discovery/wsl-console-running-distros.test.ts": 57, - "src/main/wsl/history/wsl-fish-history-cleanup.test.ts": 158, "src/main/wsl/execution/wsl-interop-spawn-directory.test.ts": 52, - "src/main/wsl/execution/wsl-managed-cli-path-restore.test.ts": 68, "src/main/wsl/discovery/wsl-running-distro-stop.test.ts": 42, "src/main/wsl/discovery/wsl-running-distros.test.ts": 201, "src/main/wsl/filesystem/wsl-running-path-filter.test.ts": 57, @@ -3437,7 +3424,6 @@ "src/renderer/src/components/editor/rich-markdown/schema/rich-markdown-trailing-paragraph.test.ts": 2437, "src/renderer/src/components/editor/use-custom-editor-outside-merge.test.tsx": 2069, "src/renderer/src/components/editor/model-lifetime/buffer-text/use-editor-content-change-handler.test.tsx": 2031, - "src/renderer/src/components/editor/markdown-preview/search/use-markdown-preview-search-reveal.test.tsx": 390, "src/renderer/src/components/editor/use-monaco-editor-mount.cursor-owner.test.tsx": 1332, "src/renderer/src/components/editor/use-monaco-editor-mount.stale-cache.test.tsx": 877, "src/renderer/src/components/editor/rich-markdown/tables/use-rich-markdown-table-context-menu.test.tsx": 2238, @@ -3480,7 +3466,6 @@ "src/renderer/src/components/linear-issue-text-draft-state.test.ts": 49, "src/renderer/src/components/link-actions/LinkActionPopover.test.tsx": 628, "src/renderer/src/components/mobile/WindowsFirewallNotice.test.tsx": 691, - "src/renderer/src/components/mobile/use-mobile-page-paired-devices.test.ts": 475, "src/renderer/src/components/native-chat/markdown/code/NativeChatCodeBlock.test.tsx": 2775, "src/renderer/src/components/native-chat/prompts/NativeChatInteractiveCard.test.tsx": 2881, "src/renderer/src/components/native-chat/viewport/scroll/NativeChatJumpToLatest.test.tsx": 477, @@ -3737,7 +3722,6 @@ "src/renderer/src/components/terminal-pane/links/http/edge-wrapped-terminal-http-links.test.ts": 529, "src/renderer/src/components/terminal-pane/links/http/framed-overlay-terminal-http-links.test.ts": 508, "src/renderer/src/components/terminal-pane/pty-connection/output-restore/hidden-query-carry-osc-introducer-leak.repro.test.ts": 1154, - "src/renderer/src/components/terminal-pane/emulation/issue-12112-agent-pane-startup-color-reply-leak.repro.test.ts": 564, "src/renderer/src/components/terminal-pane/input/keyboard-handlers-ime-composing-chord.test.tsx": 2223, "src/renderer/src/components/terminal-pane/input/keyboard-handlers-ime-enter-keyup.test.tsx": 2120, "src/renderer/src/components/terminal-pane/input/keyboard-handlers-ime.test.tsx": 2239, @@ -3755,7 +3739,6 @@ "src/renderer/src/components/terminal-pane/pty-connection/lifecycle/pty-connection-hibernation-kill-shell-foreground.test.ts": 2205, "src/renderer/src/components/terminal-pane/pty-connection/output-restore/pty-connection-hidden-restore-marker-handoff.test.ts": 2170, "src/renderer/src/components/terminal-pane/pty-connection/output-restore/pty-connection-hidden-restore-unhide-coverage.test.ts": 4612, - "src/renderer/src/components/terminal-pane/pty-connection/output-restore/pty-connection-hidden-restore-unhide-retired-task.test.ts": 1947, "src/renderer/src/components/terminal-pane/pty-connection/notifications/pty-connection-hook-idle-arbitration.test.ts": 2228, "src/renderer/src/components/terminal-pane/pty-connection/spawn/pty-connection-main-pane-restore-start.test.ts": 2430, "src/renderer/src/components/terminal-pane/pty-connection/spawn/pty-connection-main-pane-start.test.ts": 2611, @@ -3843,7 +3826,6 @@ "src/renderer/src/components/terminal-pane/input/file-drop/terminal-pane-element-file-drop.test.tsx": 1748, "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/emulation/terminal-parser-handler-guard.test.ts": 55, "src/renderer/src/components/terminal-pane/input/paste/terminal-paste-coordinator.test.ts": 155, "src/renderer/src/components/terminal-pane/links/files/terminal-path-exists-cache.test.ts": 47, @@ -3882,7 +3864,6 @@ "src/renderer/src/components/window-close-request-coordinator.test.ts": 361, "src/renderer/src/components/workspace-cleanup/dialog/WorkspaceCleanupDialog.stale-while-revalidate.test.tsx": 3269, "src/renderer/src/components/workspace-cleanup/removal/use-workspace-cleanup-removal.agent-stop.test.tsx": 2285, - "src/renderer/src/components/workspace-cleanup/removal/settlement/workspace-cleanup-background-removal-late-settlement.test.ts": 1880, "src/renderer/src/components/workspace-cleanup/removal/workspace-cleanup-removal-candidates.test.ts": 206, "src/renderer/src/components/workspace-cleanup/removal/settlement/workspace-cleanup-removal-timeout-recovery.test.ts": 1817, "src/renderer/src/components/workspace-emoji/WorkspaceEmojiPickerButton.test.tsx": 1086, @@ -3953,7 +3934,6 @@ "src/renderer/src/hooks/clipboard/primary-selection/usePrimarySelectionPaste.test.tsx": 411, "src/renderer/src/hooks/useReadOnScreenAttention.mixed-workspace.test.ts": 1725, "src/renderer/src/hooks/worktree-change-refresh-queue.test.ts": 59, - "src/renderer/src/i18n/I18nProvider.test.tsx": 2101, "src/renderer/src/i18n/language-catalog-timeout.test.tsx": 2025, "src/renderer/src/i18n/relative-time-format.test.ts": 53, "src/renderer/src/i18n/ui-intl-formatters.test.ts": 208, @@ -4135,7 +4115,6 @@ "src/renderer/src/store/slices/editor/buffers/editor-buffer-reconcile-joins.test.ts": 1766, "src/renderer/src/store/slices/editor/buffers/editor-buffer-rejoin.test.ts": 1843, "src/renderer/src/store/slices/editor/file-ids/floating-editor-file-id-layout-owner.test.ts": 933, - "src/renderer/src/store/slices/worktrees/session/folder-workspace-activation-and-activity.test.ts": 2358, "src/renderer/src/store/slices/diff-comments/folder-workspace-diff-comments.test.ts": 1042, "src/renderer/src/store/folder-workspaces/folder-workspace-owner-routed-mutations.test.ts": 1844, "src/renderer/src/store/github/issues/github-issue-state-machine.test.ts": 658, @@ -4209,7 +4188,6 @@ "src/renderer/src/web/web-file-write-disk-precondition.test.ts": 555, "src/renderer/src/web/web-insecure-origin-pairing.test.ts": 184, "src/renderer/src/web/web-pairing.test.ts": 105, - "src/renderer/src/web/web-preload-api-chat-ui-launch-migration.test.ts": 10672, "src/renderer/src/web/web-preload-api-clipboard.test.ts": 2816, "src/renderer/src/web/web-preload-api-github.test.ts": 875, "src/renderer/src/web/web-preload-api-keybindings.test.ts": 1519, @@ -4275,7 +4253,6 @@ "src/shared/agent-session/lifecycle/agent-session-operation-ledger.test.ts": 169, "src/shared/agent-session/lifecycle/agent-session-provider-handle.test.ts": 90, "src/shared/agent-session/lifecycle/agent-session-record-stored-form.test.ts": 192, - "src/shared/agent-session/lifecycle/agent-session-sign-in.test.ts": 144, "src/shared/agent-session/lifecycle/agent-session-stopped-history.test.ts": 164, "src/shared/agent-session/lifecycle/agent-session-stored-agent.test.ts": 160, "src/shared/agent-session/lifecycle/agent-session-turn-record.test.ts": 127, @@ -4293,7 +4270,6 @@ "src/shared/agent-session/structured-agent-session-reducer.test.ts": 159, "src/shared/agent-session/view/structured-agent-session-item-retention.test.ts": 679, "src/shared/agent-session/view/structured-agent-session-projection-turn-verdict.test.ts": 168, - "src/shared/agent-session/view/structured-agent-session-projection.test.ts": 245, "src/shared/agent-session/view/structured-agent-session-status-started-at.test.ts": 211, "src/shared/agent-session/view/structured-agent-session-subagent-roster.test.ts": 63, "src/shared/agent-session/view/structured-agent-session-turn-timing-retention.test.ts": 221, @@ -4401,7 +4377,6 @@ "src/shared/git/status/git-uncommitted-line-stats.test.ts": 87, "src/shared/git/worktrees/git-worktree-admin.test.ts": 161, "src/shared/github/project-board-columns.test.ts": 64, - "src/shared/github/project-identity.test.ts": 33, "src/shared/github/project-ref-input.test.ts": 40, "src/shared/grok-session-paths.test.ts": 104, "src/shared/terminal/links/hard-wrapped-terminal-http-links.test.ts": 91, @@ -4481,7 +4456,6 @@ "src/shared/node-bounded-file-reader-sync.test.ts": 56, "src/shared/node-bounded-file-reader-window.test.ts": 63, "src/shared/node-bounded-file-reader.test.ts": 67, - "src/shared/node-readable-text.test.ts": 45, "src/shared/node-source-copy-content-equality.test.ts": 52, "src/shared/nvm-default-alias.test.ts": 81, "src/shared/agent-launch/startup/omp-draft-launch-shell.test.ts": 382, @@ -4523,7 +4497,6 @@ "src/shared/plugins/artifacts/plugin-theme-artifact.test.ts": 165, "src/shared/plugins/authoring/plugin-host-typings.test.ts": 2140, "src/shared/plugins/catalog/plugin-kill-list.test.ts": 195, - "src/shared/plugins/catalog/plugin-marketplace.test.ts": 246, "src/shared/plugins/contributions/plugin-command-replaces.test.ts": 230, "src/shared/plugins/contributions/plugin-content-pack-contributions.test.ts": 227, "src/shared/plugins/contributions/plugin-custom-editor-contribution.test.ts": 238, @@ -4601,13 +4574,11 @@ "src/shared/repro-13889-claude-quarter-circle-busy-title.test.ts": 83, "src/shared/require-tui-agent-config.test.ts": 54, "src/shared/resolved-worktree-lineage.test.ts": 59, - "src/shared/ripgrep-dense-match-json.test.ts": 161, "src/shared/ripgrep-filename-decoder.test.ts": 49, "src/shared/ripgrep-line-decoding.test.ts": 352, "src/shared/ripgrep-process-availability.test.ts": 56, "src/shared/ripgrep-search-diagnostics.test.ts": 72, "src/shared/rpc-contract/automation-params-extra-agent-args.test.ts": 131, - "src/shared/rpc-contract/session-tabs/session-tabs-create-resume-session-param.test.ts": 259, "src/shared/rpc-contract/structured-agent-session-agent-params.test.ts": 274, "src/shared/remote-runtime/host-store/runtime-environment-managed-orcad-store.test.ts": 313, "src/shared/remote-runtime/host-store/runtime-environment-sidecar.test.ts": 277, @@ -4651,10 +4622,8 @@ "src/shared/structured-session-message-contracts.test.ts": 411, "src/shared/task-query.test.ts": 55, "src/shared/program-status/terminal-agent-status-processor.test.ts": 74, - "src/shared/terminal/output/terminal-bell-detector.test.ts": 40, "src/shared/terminal/protocol/queries/terminal-color-scheme-protocol.test.ts": 39, "src/shared/terminal/input/terminal-composer-draft.test.ts": 73, - "src/shared/terminal/links/terminal-file-uri-link.test.ts": 51, "src/shared/terminal/links/terminal-github-pr-link-detector.test.ts": 61, "src/shared/terminal/links/terminal-http-url-extraction.test.ts": 42, "src/shared/terminal/protocol/input-modes/terminal-kitty-keyboard-mode-tracker.test.ts": 84, @@ -4681,7 +4650,6 @@ "src/shared/terminal/protocol/queries/terminal-view-attributes.test.ts": 54, "src/shared/text-search-dense-matches.test.ts": 559, "src/shared/text-search-glob-patterns.test.ts": 268, - "src/shared/text-search-invalid-filename.test.ts": 60, "src/shared/text-search-snippet-boundaries.test.ts": 77, "src/shared/text-search-snippet-retention.test.ts": 587, "src/shared/text-search.test.ts": 135, diff --git a/config/scripts/workflow/source-routing/pr-code-change-scope.mjs b/config/scripts/workflow/source-routing/pr-code-change-scope.mjs index fa15fc1f655..e5caf62296c 100644 --- a/config/scripts/workflow/source-routing/pr-code-change-scope.mjs +++ b/config/scripts/workflow/source-routing/pr-code-change-scope.mjs @@ -218,7 +218,6 @@ const CROSS_VERSION_WIRE_PREFIXES = [ 'src/shared/agent-launch/contracts/agent-launch-intent', 'src/shared/rpc-contract/agent-launch/agent-launch-params', 'src/shared/agent-session/agent-session-wire', - 'src/shared/agent-session/view/structured-agent-session-projection.test.ts', 'src/shared/agent-session/view/structured-agent-session-projection.ts', 'src/shared/agent-session/lifecycle/records/agent-session-record-stored-form.test.ts', 'src/shared/agent-session/lifecycle/records/agent-session-record-stored-form.ts', diff --git a/mobile/src/files/attachments/mobile-image-base64-accumulator.test.ts b/mobile/src/files/attachments/mobile-image-base64-accumulator.test.ts deleted file mode 100644 index efe0cfff696..00000000000 --- a/mobile/src/files/attachments/mobile-image-base64-accumulator.test.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { Buffer } from 'node:buffer' -import { describe, expect, it } from 'vitest' -import { MobileImageBase64Accumulator } from './mobile-image-base64-accumulator' - -function decodeBase64(data: string): Uint8Array { - return Buffer.from(atob(data), 'latin1') -} - -describe('MobileImageBase64Accumulator', () => { - it('preserves bytes across internal staging flushes', () => { - const bytes = new Uint8Array(256 * 1024 + 7) - bytes.forEach((_, index) => { - bytes[index] = index % 251 - }) - const accumulator = new MobileImageBase64Accumulator() - accumulator.append(bytes.subarray(0, 123_457)) - accumulator.append(bytes.subarray(123_457)) - - expect(Buffer.compare(decodeBase64(accumulator.finish()), bytes)).toBe(0) - }) -}) diff --git a/mobile/src/hooks/mobile-dictation-pending-audio-budget.test.ts b/mobile/src/hooks/mobile-dictation-pending-audio-budget.test.ts deleted file mode 100644 index 64f5742b23f..00000000000 --- a/mobile/src/hooks/mobile-dictation-pending-audio-budget.test.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { describe, expect, it } from 'vitest' -import { MobileDictationPendingAudioBudget } from './mobile-dictation-pending-audio-budget' - -describe('MobileDictationPendingAudioBudget', () => { - it('keeps a replayed backlog out of the live limit while live requests settle first', () => { - const budget = new MobileDictationPendingAudioBudget(100) - budget.reserveBacklog(150) - expect(budget.takeBacklog(150)).toBe(150) - expect(budget.tryReserve(60)).toBe(true) - expect(budget.takeBacklog(60)).toBe(0) - // The live request answers before the older backlog request does. - budget.release(60, 0) - expect(budget.tryReserve(90)).toBe(true) - expect(budget.tryReserve(11)).toBe(false) - }) -}) diff --git a/mobile/src/mobile-web-shell/bridge/client-state/bridge-ui-locale.test.ts b/mobile/src/mobile-web-shell/bridge/client-state/bridge-ui-locale.test.ts deleted file mode 100644 index 7fc1693a7d8..00000000000 --- a/mobile/src/mobile-web-shell/bridge/client-state/bridge-ui-locale.test.ts +++ /dev/null @@ -1,22 +0,0 @@ -import { afterEach, expect, it } from 'vitest' -import { createFakeBridgePortPair } from '../test-support/bridge-port-pair-test-harness' -import { readBridgeHostMessage } from '../protocol/bridge-envelope' - -let pair: ReturnType | null = null - -afterEach(() => { - pair?.client.close() - pair?.host.dispose() - pair = null -}) - -it('keeps an init whose language this page does not ship', async () => { - pair = createFakeBridgePortPair() - await pair.flush() - const init = pair.readToPage().find((frame) => frame.type === 'init') - const read = readBridgeHostMessage(JSON.stringify({ ...init, uiLocale: 'it' })) - expect(read.ok).toBe(true) - expect( - read.ok && read.message.type === 'init' ? read.message.uiLocale : 'refused' - ).toBeUndefined() -}) diff --git a/mobile/src/notifications/payload-identity/push-host-fingerprint.test.ts b/mobile/src/notifications/payload-identity/push-host-fingerprint.test.ts deleted file mode 100644 index d4194b7d6be..00000000000 --- a/mobile/src/notifications/payload-identity/push-host-fingerprint.test.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { describe, expect, it } from 'vitest' -import { resolveHostIdForFingerprint } from './push-host-fingerprint' - -const publicKey = Uint8Array.from({ length: 32 }, (_, index) => index) -const publicKeyB64 = Buffer.from(publicKey).toString('base64') - -describe('resolveHostIdForFingerprint', () => { - const other = Uint8Array.from({ length: 32 }, (_, index) => index + 1) - const hosts = [ - { id: 'host-corrupt', publicKeyB64: 'not-a-key' }, - { id: 'host-other', publicKeyB64: Buffer.from(other).toString('base64') }, - { id: 'host-1', publicKeyB64 } - ] - - it('maps a push fingerprint back to the paired host id', () => { - expect(resolveHostIdForFingerprint('Yw3NKWbEM2aRElRI', hosts)).toBe('host-1') - }) -}) diff --git a/mobile/src/terminal/viewport/terminal-grid-fit.test.ts b/mobile/src/terminal/viewport/terminal-grid-fit.test.ts deleted file mode 100644 index 28c70569e84..00000000000 --- a/mobile/src/terminal/viewport/terminal-grid-fit.test.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { describe, expect, it } from 'vitest' -import { fitDimensionsFromCell } from './terminal-grid-fit' - -describe('fitDimensionsFromCell', () => { - it('keeps an exact fit at a fractional pixel ratio whole', () => { - // An exact device-pixel fit can divide to 49.999… after pixel-ratio conversion. - const cell = { cellWidth: 18 / 2.75, cellHeight: 40 / 2.75 } - expect(fitDimensionsFromCell(cell, 900 / 2.75, 1320 / 2.75)).toEqual({ cols: 50, rows: 33 }) - }) - - it('still falls short of a column the frame does not hold', () => { - const cell = { cellWidth: 393 / 51, cellHeight: 15 } - expect(fitDimensionsFromCell(cell, 1080 / 2.75, 600)?.cols).toBe(50) - }) -}) diff --git a/mobile/src/transport/relay/mobile-relay-background-grace.test.ts b/mobile/src/transport/relay/mobile-relay-background-grace.test.ts deleted file mode 100644 index f857f4f8825..00000000000 --- a/mobile/src/transport/relay/mobile-relay-background-grace.test.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { afterEach, describe, expect, it, vi } from 'vitest' -import { - MobileRelayBackgroundGraceTimer, - RELAY_BACKGROUND_GRACE_MS -} from './mobile-relay-background-grace' - -describe('MobileRelayBackgroundGraceTimer', () => { - afterEach(() => vi.useRealTimers()) - - it('detects expiry on resume when the background timer was suspended', () => { - vi.useFakeTimers() - let now = 1_000 - const timer = new MobileRelayBackgroundGraceTimer( - { - now: () => now, - setTimer: vi.fn(() => setTimeout(() => {}, 0)), - clearTimer: vi.fn() - }, - vi.fn() - ) - - timer.arm() - now += RELAY_BACKGROUND_GRACE_MS - - expect(timer.consumeExpired()).toBe(true) - expect(timer.consumeExpired()).toBe(false) - }) -}) diff --git a/src/main/agent-hooks/tool-events/agent-tool-plugin-hooks.test.ts b/src/main/agent-hooks/tool-events/agent-tool-plugin-hooks.test.ts deleted file mode 100644 index 3012b5ee23f..00000000000 --- a/src/main/agent-hooks/tool-events/agent-tool-plugin-hooks.test.ts +++ /dev/null @@ -1,57 +0,0 @@ -import { afterEach, describe, expect, it, vi } from 'vitest' -import type { PluginHookName } from '../../../shared/plugins/contributions/plugin-hook-contribution' -import type { PluginHookChainOutcome } from '../../../shared/plugins/workers/plugin-hook-chain' -import { setPluginHookRunner } from '../../plugins/hooks/plugin-hook-dispatch' -import { answerAgentToolPluginHooks } from './agent-tool-plugin-hooks' - -const DECIDES = { 'x-orca-hook-decision': 'claude-pre-tool-use-v1' } - -function installRunner( - decide: (payload: unknown) => PluginHookChainOutcome | Promise -) { - const run = vi.fn(async (_event: PluginHookName, payload: unknown) => decide(payload)) - setPluginHookRunner({ wants: (event) => event.startsWith('agent.tool.'), run }) - return run -} - -function post(payload: Record) { - return { paneKey: 'tab-1:0', worktreeId: 'repo::/w', payload: JSON.stringify(payload) } -} - -const PRE = post({ - hook_event_name: 'PreToolUse', - tool_name: 'Bash', - tool_input: { command: 'rm -rf /' }, - tool_use_id: 'toolu_1' -}) - -const OWNER = { paneKey: 'tab-1:0', worktreeId: 'repo::/w', hookEventName: 'PreToolUse' } - -afterEach(() => { - setPluginHookRunner(null) - vi.useRealTimers() -}) - -describe('answerAgentToolPluginHooks', () => { - it('answers changed input without approving it, and nothing when unchanged', async () => { - installRunner((payload) => ({ - kind: 'continue', - payload: { ...Object(payload), input: { command: 'ls' } } - })) - expect( - JSON.parse((await answerAgentToolPluginHooks('claude', PRE, DECIDES, OWNER)) ?? 'null') - ).toEqual({ - hookSpecificOutput: { hookEventName: 'PreToolUse', updatedInput: { command: 'ls' } } - }) - installRunner((payload) => ({ kind: 'continue', payload })) - await expect(answerAgentToolPluginHooks('claude', PRE, DECIDES, OWNER)).resolves.toBeNull() - }) - - it('fails open when the plugins take longer than the script waits', async () => { - vi.useFakeTimers() - installRunner(() => new Promise(() => undefined)) - const answer = answerAgentToolPluginHooks('claude', PRE, DECIDES, OWNER) - await vi.advanceTimersByTimeAsync(6_000) - await expect(answer).resolves.toBeNull() - }) -}) diff --git a/src/main/computer/desktop-script/runtime-host/windows-powershell-execution-policy.test.ts b/src/main/computer/desktop-script/runtime-host/windows-powershell-execution-policy.test.ts deleted file mode 100644 index b54b7b02d4c..00000000000 --- a/src/main/computer/desktop-script/runtime-host/windows-powershell-execution-policy.test.ts +++ /dev/null @@ -1,40 +0,0 @@ -import { describe, expect, it } from 'vitest' -import { isExecutionPolicyBlocked } from './windows-powershell-execution-policy' - -/** Captured PowerShell errors, preserving console hard wrapping. */ -const POLICY_BLOCKED_RESTRICTED = [ - 'File C:\\Temp\\runtime.ps1 cannot be loaded because running scripts is disabled on this system. For more ', - 'information, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170.', - ' + CategoryInfo : SecurityError: (:) [], ParentContainsErrorRecordException', - ' + FullyQualifiedErrorId : UnauthorizedAccess' -].join('\r\n') - -const POLICY_BLOCKED_REMOTE_SIGNED = [ - 'File C:\\Temp\\runtime.ps1 cannot be loaded. The file ', - 'C:\\Temp\\runtime.ps1 is not digitally signed. You cannot run this script on the current system. For more ', - 'information about running scripts and setting execution policy, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170.', - ' + CategoryInfo : SecurityError: (:) [], ParentContainsErrorRecordException', - ' + FullyQualifiedErrorId : UnauthorizedAccess' -].join('\r\n') - -/** No execution policy involved: .NET refusing a file the process may not read. */ -const GENUINE_ACCESS_DENIED = [ - 'Exception calling "ReadAllText" with "1" argument(s): "Access to the path \'C:\\Windows\\System32\\config\\SAM\' is denied."', - 'At C:\\Temp\\runtime.ps1:1 char:1', - '+ [System.IO.File]::ReadAllText("C:\\Windows\\System32\\config\\SAM")', - '+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~', - ' + CategoryInfo : NotSpecified: (:) [], MethodInvocationException', - ' + FullyQualifiedErrorId : UnauthorizedAccessException' -].join('\r\n') - -describe('isExecutionPolicyBlocked', () => { - it('recognises a policy block under either policy', () => { - expect(isExecutionPolicyBlocked(POLICY_BLOCKED_RESTRICTED)).toBe(true) - expect(isExecutionPolicyBlocked(POLICY_BLOCKED_REMOTE_SIGNED)).toBe(true) - }) - - it('does not read a plain access denial as a policy block', () => { - // The word boundary distinguishes a policy ID from UnauthorizedAccessException. - expect(isExecutionPolicyBlocked(GENUINE_ACCESS_DENIED)).toBe(false) - }) -}) diff --git a/src/main/crash-reporting/breadcrumbs/crash-breadcrumb-store-orphan-cleanup.test.ts b/src/main/crash-reporting/breadcrumbs/crash-breadcrumb-store-orphan-cleanup.test.ts deleted file mode 100644 index f2089d9f1da..00000000000 --- a/src/main/crash-reporting/breadcrumbs/crash-breadcrumb-store-orphan-cleanup.test.ts +++ /dev/null @@ -1,76 +0,0 @@ -import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest' -import { - clearCrashBreadcrumbsForTest, - getCrashBreadcrumbSnapshot, - recordCoalescedCrashBreadcrumb, - recordCrashBreadcrumb -} from './crash-breadcrumb-store' - -const COALESCE_WINDOW_MS = 30_000 - -const ORPHAN_KEY = 'terminal_safe_fit_retry_exhausted' - -function recordOrphanCandidate(livePanes: number): void { - recordCoalescedCrashBreadcrumb({ - name: ORPHAN_KEY, - data: { livePanes }, - coalesceKey: ORPHAN_KEY, - minIntervalMs: COALESCE_WINDOW_MS - }) -} - -function resumeOrphanCandidate(livePanes: number): { suppressedSinceLast: number } | undefined { - return recordCoalescedCrashBreadcrumb({ - name: ORPHAN_KEY, - data: { livePanes }, - coalesceKey: ORPHAN_KEY, - minIntervalMs: COALESCE_WINDOW_MS - }) -} - -function orphanFromRing(): void { - for (let index = 0; index < 30; index += 1) { - recordCrashBreadcrumb(`renderer_error_${index}`, { index }) - } - getCrashBreadcrumbSnapshot() -} - -function expireWithUnrelatedKey(): void { - vi.advanceTimersByTime(COALESCE_WINDOW_MS + 1) - recordCoalescedCrashBreadcrumb({ - name: 'agent_state_changed', - data: { agentType: 'claude', state: 'working' }, - coalesceKey: 'agent:claude:working', - minIntervalMs: COALESCE_WINDOW_MS - }) -} - -describe('orphaned coalesced breadcrumb cleanup', () => { - beforeEach(() => { - vi.useFakeTimers() - vi.setSystemTime(new Date('2026-07-22T12:00:00.000Z')) - }) - - afterEach(() => { - clearCrashBreadcrumbsForTest() - vi.useRealTimers() - }) - - it('materializes only repeats not already claimed by an earlier snapshot', () => { - recordOrphanCandidate(1) - recordOrphanCandidate(2) - const firstSnapshot = getCrashBreadcrumbSnapshot() - recordOrphanCandidate(3) - recordOrphanCandidate(4) - orphanFromRing() - - expireWithUnrelatedKey() - - expect(firstSnapshot[0]?.data).toEqual({ livePanes: 2, suppressedSinceLast: 1 }) - const recovered = getCrashBreadcrumbSnapshot().find( - (breadcrumb) => breadcrumb.name === ORPHAN_KEY - ) - expect(recovered?.data).toEqual({ livePanes: 4, suppressedSinceLast: 2 }) - expect(resumeOrphanCandidate(5)).toEqual({ suppressedSinceLast: 0 }) - }) -}) diff --git a/src/main/credentials/integration-state-file-cache.test.ts b/src/main/credentials/integration-state-file-cache.test.ts deleted file mode 100644 index a2bb7cee926..00000000000 --- a/src/main/credentials/integration-state-file-cache.test.ts +++ /dev/null @@ -1,83 +0,0 @@ -import { - existsSync, - mkdtempSync, - readFileSync, - renameSync, - rmSync, - statSync, - utimesSync, - writeFileSync -} from 'node:fs' -import { tmpdir } from 'node:os' -import { join } from 'node:path' -import { afterEach, describe, expect, it } from 'vitest' -import { createIntegrationStateFileCache } from './integration-state-file-cache' - -let dir = '' - -function tempFile(): string { - dir = mkdtempSync(join(tmpdir(), 'orca-state-file-cache-')) - return join(dir, 'state.json') -} - -afterEach(() => { - if (dir) { - rmSync(dir, { recursive: true, force: true }) - dir = '' - } -}) - -describe('createIntegrationStateFileCache', () => { - it('notices a same-size atomic replacement with the original modification time', () => { - const path = tempFile() - writeFileSync(path, 'old') - const time = new Date('2026-01-01T00:00:00Z') - utimesSync(path, time, time) - const cache = createIntegrationStateFileCache({ - filePath: () => path, - readFromDisk: () => readBody(path) - }) - expect(cache.get()).toBe('old') - const replacement = join(dir, 'replacement.json') - writeFileSync(replacement, 'new') - utimesSync(replacement, time, time) - renameSync(replacement, path) - expect(statSync(path).mtime.getTime()).toBe(time.getTime()) - expect(cache.get()).toBe('new') - }) - - it('reloads when a file appears after an absent first read', () => { - const path = tempFile() - const cache = createIntegrationStateFileCache({ - filePath: () => path, - readFromDisk: () => ({ present: fileExists(path) }) - }) - expect(cache.get()).toEqual({ present: false }) - - writeFileSync(path, 'now here') - - expect(cache.get()).toEqual({ present: true }) - }) - - it('reloads when the file is removed', () => { - const path = tempFile() - writeFileSync(path, 'a') - const cache = createIntegrationStateFileCache({ - filePath: () => path, - readFromDisk: () => ({ present: fileExists(path) }) - }) - expect(cache.get()).toEqual({ present: true }) - - rmSync(path) - - expect(cache.get()).toEqual({ present: false }) - }) -}) - -function readBody(path: string): string { - return readFileSync(path, 'utf-8') -} - -function fileExists(path: string): boolean { - return existsSync(path) -} diff --git a/src/main/daemon/sessions/testing/session-pending-output.test.ts b/src/main/daemon/sessions/testing/session-pending-output.test.ts deleted file mode 100644 index 1842974c082..00000000000 --- a/src/main/daemon/sessions/testing/session-pending-output.test.ts +++ /dev/null @@ -1,79 +0,0 @@ -import { afterEach, describe, expect, it } from 'vitest' -import { Session } from '../session' - -function createMockSubprocess() { - let onData: ((data: string) => void) | null = null - return { - pid: 12345, - getForegroundProcess: (): string | null => null, - write(_data: string) {}, - resize(_cols: number, _rows: number) {}, - kill() {}, - terminateOwnedTree: () => 'unavailable' as const, - forceKill() {}, - signal(_sig: string) {}, - onData(cb: (data: string) => void) { - onData = cb - }, - onExit(_cb: (code: number) => void) {}, - dispose() {}, - simulateData(data: string) { - onData?.(data) - } - } -} - -let session: Session | null = null - -afterEach(() => { - session?.dispose() - session = null -}) - -function createSession(subprocess = createMockSubprocess()): Session { - session = new Session({ - sessionId: 'pending-test', - cols: 80, - rows: 24, - subprocess, - shellReadySupported: false - }) - return session -} - -describe('Session pending output', () => { - it('records output, resize, and clear in application order', () => { - const subprocess = createMockSubprocess() - const live = createSession(subprocess) - - subprocess.simulateData('before resize') - live.resize(100, 30) - subprocess.simulateData('after resize') - live.clearScrollback() - - const take = live.takePendingOutput(false) - expect(take).not.toBeNull() - expect(take!.overflowed).toBe(false) - expect(take!.snapshot).toBeNull() - expect(take!.records).toEqual([ - { kind: 'output', data: 'before resize' }, - { kind: 'resize', cols: 100, rows: 30 }, - { kind: 'output', data: 'after resize' }, - { kind: 'clear' } - ]) - }) - - it('returns the snapshot and drops records in the same take when requested', () => { - const subprocess = createMockSubprocess() - const live = createSession(subprocess) - - subprocess.simulateData('snapshot content\r\n') - const take = live.takePendingOutput(true) - expect(take!.records).toEqual([]) - expect(take!.snapshot?.snapshotAnsi).toContain('snapshot content') - - // Snapshot-covered records must not replay again on recovery. - const next = live.takePendingOutput(false) - expect(next!.records).toEqual([]) - }) -}) diff --git a/src/main/i18n/main-i18n-lazy-locale.test.ts b/src/main/i18n/main-i18n-lazy-locale.test.ts deleted file mode 100644 index 201410b4f4a..00000000000 --- a/src/main/i18n/main-i18n-lazy-locale.test.ts +++ /dev/null @@ -1,40 +0,0 @@ -import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest' - -// English uses fallbacks; awaited non-English catalogs must load without entering the cold-start bundle. - -vi.mock('electron', () => ({ - app: { - getLocale: vi.fn(() => 'en-US') - } -})) - -import { UI_LANGUAGE_ENGLISH } from '../../shared/i18n/ui-language' -import { mainI18n, setMainPluginLanguagePacks, setMainUiLanguage, translateMain } from './main-i18n' -import '../../shared/plugins/artifacts/plugin-language-pack-artifact' - -describe('main-i18n lazy locale loading', () => { - afterEach(() => vi.restoreAllMocks()) - beforeEach(async () => { - setMainPluginLanguagePacks([]) - await setMainUiLanguage(UI_LANGUAGE_ENGLISH) - }) - - it('keeps a newer explicit language when system fallback catalog loading finishes late', async () => { - const { getSystemLanguageDetection } = await import('./system-language') - expect(getSystemLanguageDetection(['fr-FR'])?.locale).toBe('fr') - let finishLoad: () => void = () => {} - const load = vi.spyOn(mainI18n, 'loadLanguages').mockImplementationOnce( - () => - new Promise((resolve) => { - finishLoad = resolve - }) - ) - const fallback = setMainUiLanguage('system') - await vi.waitFor(() => expect(load).toHaveBeenCalledWith('fr')) - await setMainUiLanguage('en') - finishLoad() - await fallback - expect(mainI18n.language).toBe('en') - expect(translateMain('menu.file', 'File')).toBe('File') - }) -}) diff --git a/src/main/ipc/ssh/ssh-passphrase.test.ts b/src/main/ipc/ssh/ssh-passphrase.test.ts deleted file mode 100644 index e7374c9b8cb..00000000000 --- a/src/main/ipc/ssh/ssh-passphrase.test.ts +++ /dev/null @@ -1,72 +0,0 @@ -import { ipcMain, type BrowserWindow } from 'electron' -import { beforeEach, describe, expect, it, vi } from 'vitest' -import { registerCredentialHandler, requestCredential } from './ssh-passphrase' -import { resetSshCredentialDeclinesForTests } from '../../ssh/authentication/ssh-credential-decline' - -vi.mock('electron', () => ({ - ipcMain: { - handle: vi.fn(), - removeHandler: vi.fn() - } -})) - -function credentialWindow() { - return { - isDestroyed: () => false, - webContents: { send: vi.fn() } - } as unknown as BrowserWindow -} - -describe('SSH credential requests', () => { - beforeEach(() => { - resetSshCredentialDeclinesForTests() - }) - - it('closes every other open prompt for the host the user cancelled', async () => { - registerCredentialHandler() - const handler = vi.mocked(ipcMain.handle).mock.calls.at(-1)![1] - const submit = (requestId: string, value: string | null): unknown => - handler(Object.create(null), { requestId, value }) - const window = credentialWindow() - const requestIds = (): string[] => - vi - .mocked(window.webContents.send) - .mock.calls.flatMap(([channel, request]) => - channel === 'ssh:credential-request' && - request && - typeof request === 'object' && - 'requestId' in request && - typeof request.requestId === 'string' - ? [request.requestId] - : [] - ) - const first = requestCredential( - () => window, - 'target-1', - 'password', - 'host', - undefined, - new AbortController().signal - ) - const queued = requestCredential( - () => window, - 'target-1', - 'password', - 'host', - undefined, - new AbortController().signal - ) - const otherHost = requestCredential(() => window, 'target-2', 'password', 'other') - const [firstId, queuedId, otherId] = requestIds() - - await submit(firstId, null) - - await expect(first).resolves.toBeNull() - await expect(queued).resolves.toBeNull() - expect(window.webContents.send).toHaveBeenCalledWith('ssh:credential-resolved', { - requestId: queuedId - }) - await submit(otherId, 'secret') - await expect(otherHost).resolves.toBe('secret') - }) -}) diff --git a/src/main/native-chat/agent-session-journal/journal-domain-handover.test.ts b/src/main/native-chat/agent-session-journal/journal-domain-handover.test.ts deleted file mode 100644 index 438383714cc..00000000000 --- a/src/main/native-chat/agent-session-journal/journal-domain-handover.test.ts +++ /dev/null @@ -1,70 +0,0 @@ -import { afterEach, expect, it } from 'vitest' -import { agentSessionFailureFact } from '../../../shared/agent-session/failures/agent-session-failure' -import { agentSessionFailureWords } from '../../../shared/agent-session/failures/agent-session-failure-words' -import { domainLifecycleFixture } from './journal-domain-lifecycle.test-fixture' - -const cleanup: (() => void)[] = [] -afterEach(() => cleanup.splice(0).forEach((close) => close())) - -it('claims stopped history with the handover and releases it after an unwritten refusal', async () => { - const f = domainLifecycleFixture(cleanup) - const body = (text: string) => ({ - kind: 'message' as const, - role: 'user' as const, - blocks: [{ type: 'text' as const, text }] - }) - const handover = (clientMessageId: string) => - f - .run({ - kind: 'handover', - input: { - clientMessageId, - fence: 1, - turnScope: { kind: 'thread' }, - body: body(clientMessageId) - } - }) - .then((commit) => commit.value) - const refuse = (clientMessageId: string) => - f.run({ - kind: 'dispatch', - input: { - clientMessageId, - state: 'rejected', - fence: 1, - ...agentSessionFailureWords( - agentSessionFailureFact('cancelled', { neverReachedAgent: true }), - { surface: 'rejection' } - ) - } - }) - for (const clientMessageId of ['owed', 'carrier-a', 'carrier-b']) { - await f.run({ - kind: 'submission', - input: { - clientMessageId, - payloadFingerprint: clientMessageId, - body: body(clientMessageId), - fence: 1, - handoverRecorded: true, - origin: 'client', - source: { kind: 'user' } - } - }) - } - expect(await handover('owed')).toBeNull() - await refuse('owed') - expect(await handover('carrier-a')).toEqual({ - messages: [{ clientMessageId: 'owed', words: 'owed' }], - covers: ['owed'] - }) - expect(await handover('carrier-b')).toBeNull() - await refuse('carrier-a') - expect(await handover('carrier-b')).toEqual({ - messages: [ - { clientMessageId: 'owed', words: 'owed' }, - { clientMessageId: 'carrier-a', words: 'carrier-a' } - ], - covers: ['owed', 'carrier-a'] - }) -}) diff --git a/src/main/native-chat/agent-session-journal/projection/journal-reducer-rejection-fact.test.ts b/src/main/native-chat/agent-session-journal/projection/journal-reducer-rejection-fact.test.ts deleted file mode 100644 index 8db6ce0fe97..00000000000 --- a/src/main/native-chat/agent-session-journal/projection/journal-reducer-rejection-fact.test.ts +++ /dev/null @@ -1,61 +0,0 @@ -import { describe, expect, it } from 'vitest' -import { - classifyDispatchRejection, - DISPATCH_REJECTED_QUEUE_FULL -} from '../../../../shared/agent-session/requests/structured-agent-session-dispatch-rejection' -import { - applyJournalRow, - createJournalReducerState, - type JournalReducerState -} from './journal-reducer' -import type { JournalRow } from '../durable-rows/journal-row-schema' - -const EPOCH = 'epoch-1' - -function base(seq: number): { v: number; epoch: string; seq: number; fence: number; ts: number } { - return { v: 1, epoch: EPOCH, seq, fence: 1, ts: 1_000 + seq } -} - -function fold(rows: JournalRow[]): JournalReducerState { - const state = createJournalReducerState('session-1', EPOCH) - for (const row of rows) { - applyJournalRow(state, row) - } - return state -} - -describe('a rejected dispatch', () => { - const submission: JournalRow = { - kind: 'submission', - clientMessageId: 'cm_1', - payloadFingerprint: 'fp_1', - providerHandle: { kind: 'codex', threadId: 'thread-1' }, - body: { kind: 'message', role: 'user', blocks: [{ type: 'text', text: 'hi' }] }, - ...base(1) - } - - it('keeps only the kind of a rejection fact it cannot place, so it reads as no verdict', () => { - const rejected = (rejection: unknown): JournalRow => { - const row: JournalRow = { - kind: 'dispatch', - clientMessageId: 'cm_1', - state: 'rejected', - providerItemId: null, - reason: DISPATCH_REJECTED_QUEUE_FULL, - ...base(2) - } - return Object.assign(row, { rejection }) - } - // Unknown typed facts must not fall back to conflicting reason markers. - const newer = fold([submission, rejected({ kind: 'futureKind', detail: 'x' })]) - const settled = newer.submissions.get('cm_1') - expect(settled).toMatchObject({ dispatchState: 'rejected', rejection: { kind: 'futureKind' } }) - expect(settled && classifyDispatchRejection(settled)).toEqual({ - category: 'undelivered', - verdict: null - }) - const malformed = fold([submission, rejected('queueFull')]).submissions.get('cm_1') - expect(malformed).not.toHaveProperty('rejection') - expect(malformed && classifyDispatchRejection(malformed)).toMatchObject({ kind: 'queueFull' }) - }) -}) diff --git a/src/main/native-chat/agent-session-journal/queued-messages/queued-message-scaling.test.ts b/src/main/native-chat/agent-session-journal/queued-messages/queued-message-scaling.test.ts deleted file mode 100644 index 38faca0d46c..00000000000 --- a/src/main/native-chat/agent-session-journal/queued-messages/queued-message-scaling.test.ts +++ /dev/null @@ -1,64 +0,0 @@ -import { afterEach, expect, it, vi } from 'vitest' -import { createJournalReducerState } from '../projection/journal-reducer' -import '../projection/journal-reducer-transition' -import '../input-order/journal-queued-row-index' -import './journal-queue-events' -import { QueuedMessageEditLeases } from './queued-message-edit-leases' -import '../input-order/journal-input-order' -import { nextEligibleQueuedCard } from './journal-queue-mail-eligibility' -import type { AgentJournalMessageItem } from '../../../../shared/agent-session/journal/agent-session-journal-types' -import type { QueuedMessageRow } from './queued-message-table' - -const body: AgentJournalMessageItem = { - kind: 'message', - role: 'user', - blocks: [{ type: 'text', text: 'follow up' }] -} -function card(index: number, state: QueuedMessageRow['state'] = 'waiting'): QueuedMessageRow { - return { - messageId: `card-${index}`, - position: index, - body, - fingerprint: 'body', - state, - holdReason: null, - returnedReason: null, - returnedRejection: null, - consumedAs: null, - queuedAt: { epoch: 'epoch', sequence: 1 }, - unattended: false - } -} -afterEach(() => vi.restoreAllMocks()) - -it('an edit lease on a skipped row bars the tail until its deadline', () => { - const state = createJournalReducerState('session', 'epoch') - state.queue.cards.set('card-1', card(1, 'returned')) - state.queue.cards.set('card-2', card(2)) - state.queue.cards.set('card-3', { ...card(3), deliveryMode: 'steer' }) - state.queuePauseMarks.cleared = { sequence: 2, operationId: 'clear', messageIds: ['card-2'] } - let now = 0 - const leases = new QueuedMessageEditLeases( - () => [], - () => now, - (id) => state.queue.cards.get(id) - ) - leases.acquire( - { callerKey: 'person', editId: 'edit' }, - { messageId: 'card-2', fingerprint: 'body' } - ) - const claim = () => - nextEligibleQueuedCard({ - state, - floor: null, - get: (id) => state.queue.cards.get(id) ?? null, - editHeld: (id) => leases.isHeld(id), - revisions: [leases.version()], - unavailable: undefined, - steer: true - }) - expect(claim()).toBeNull() - now = 120_001 - expect(claim()?.messageId).toBe('card-3') - leases.dispose() -}) diff --git a/src/main/runtime/push/notifications/terminal-agent-turn-news.test.ts b/src/main/runtime/push/notifications/terminal-agent-turn-news.test.ts deleted file mode 100644 index 071d45d4e83..00000000000 --- a/src/main/runtime/push/notifications/terminal-agent-turn-news.test.ts +++ /dev/null @@ -1,59 +0,0 @@ -import { afterEach, expect, it, vi } from 'vitest' -import type { AgentStatusIpcPayload } from '../../../../shared/agent-status/contracts/agent-status-ipc-payload' -import type { AgentPaneChange } from '../../../agent-hooks/observations/agent-transition-detector' -import { TerminalAgentTurnNews } from './terminal-agent-turn-news' - -const paneKey = 'tab:11111111-1111-4111-8111-111111111111' -const workspace = { worktreeId: 'repo::/task', sshHostId: null } - -afterEach(() => { - vi.useRealTimers() -}) - -it.each([false, true])( - 'delivers an accepted finish after departure unless a new prompt supersedes it (new prompt: %s)', - (newPrompt) => { - vi.useFakeTimers() - let row: AgentStatusIpcPayload | null = { - paneKey, - worktreeId: workspace.worktreeId, - connectionId: null, - state: 'working', - agentType: 'claude', - prompt: 'finish task', - receivedAt: 1000, - stateStartedAt: 1000 - } - const delivered: string[] = [] - const news = new TerminalAgentTurnNews({ - readHookRow: () => row, - prepare: ({ row: completed }) => completed.lastAssistantMessage ?? '', - deliver: (message) => delivered.push(message), - setTimer: (run, delayMs) => { - const timer = setTimeout(run, delayMs) - return { cancel: () => clearTimeout(timer) } - } - }) - const observe = ( - from: Extract['from'], - to: Extract['to'], - transition: Extract['transition'] - ) => news.observe({ kind: 'moved', paneKey, workspace, from, to, transition, at: 2000 }) - try { - news.observe({ kind: 'observed', paneKey, workspace, phase: 'working', at: 1000 }) - row = { ...row, state: 'done', stateStartedAt: 2000, lastAssistantMessage: 'Finished.' } - observe('working', 'done', 'turn-finished') - row = null - observe('done', 'rest', null) - if (newPrompt) { - observe('rest', 'working', 'prompt-submitted') - } - vi.runAllTimers() - expect(delivered).toEqual(newPrompt ? [] : ['Finished.']) - vi.runAllTimers() - expect(delivered).toEqual(newPrompt ? [] : ['Finished.']) - } finally { - news.dispose() - } - } -) diff --git a/src/main/runtime/terminal/launch/orca-runtime-terminal-create-replay-after-close.test.ts b/src/main/runtime/terminal/launch/orca-runtime-terminal-create-replay-after-close.test.ts deleted file mode 100644 index a7311db7968..00000000000 --- a/src/main/runtime/terminal/launch/orca-runtime-terminal-create-replay-after-close.test.ts +++ /dev/null @@ -1,59 +0,0 @@ -import { randomUUID } from 'node:crypto' -import { describe, expect, it, vi } from 'vitest' -import type { PtyProcessInfo } from '../../../providers/pty/process-info' -import { - setupLayoutOwnerRuntime, - WORKTREE_ID -} from '../../orca-runtime-tests/orca-runtime-layout-owner-start-fixture' -import { committingSpawn } from '../../orca-runtime-tests/bind-first-pane.test-fixture' - -vi.mock('../../../../shared/layout-owner-switch', () => ({ ORCA_LAYOUT_OWNER_IS_MAIN: true })) - -// Paired desktops replay stable tab/leaf ids; durable closed-tab records must reject late retries. -function pairedDesktopCreate() { - const fixture = setupLayoutOwnerRuntime() - const live: PtyProcessInfo[] = [] - fixture.runtime.setPtyController({ - spawn: committingSpawn(fixture.runtime, fixture.spawn), - write: () => true, - kill: () => true, - getForegroundProcess: async () => null, - listProcesses: vi.fn(async () => live) - }) - const pane = { tabId: randomUUID(), leafId: randomUUID() } - const create = (reconcileExisting: boolean) => - fixture.runtime.dedupeTerminalCreate( - 'paired-desktop', - `id:${WORKTREE_ID}`, - 'mutation-x', - reconcileExisting, - (selector, preAllocatedHandle) => - fixture.runtime.createTerminal(selector, { - ...pane, - ...(preAllocatedHandle ? { preAllocatedHandle } : {}) - }) - ) - return { ...fixture, live, pane, create } -} - -describe('a paired desktop terminal.create replayed with its pane ids', () => { - it('is refused after another client closed its tab: nothing starts and no tab comes back', async () => { - const { runtime, spawn, session, pane, create } = pairedDesktopCreate() - - await create(false) - expect(session().tabsByWorktree[WORKTREE_ID]?.map((tab) => tab.id)).toEqual([pane.tabId]) - expect(spawn).toHaveBeenCalledTimes(1) - - await runtime.applyLayoutCommand({ - type: 'closeTabs', - workspace: WORKTREE_ID, - tabIds: [pane.tabId], - recordClose: 'user' - }) - expect(session().tabsByWorktree[WORKTREE_ID] ?? []).toEqual([]) - - await expect(create(true)).rejects.toThrow('tab_not_found') - expect(spawn).toHaveBeenCalledTimes(1) - expect(session().tabsByWorktree[WORKTREE_ID] ?? []).toEqual([]) - }) -}) diff --git a/src/main/ssh/host-server/ssh-host-server-on-connect-node-download.test.ts b/src/main/ssh/host-server/ssh-host-server-on-connect-node-download.test.ts deleted file mode 100644 index 26d51594dcd..00000000000 --- a/src/main/ssh/host-server/ssh-host-server-on-connect-node-download.test.ts +++ /dev/null @@ -1,57 +0,0 @@ -/** Carry structured Node-download failure for the mirror offer; never infer it from message text. */ -import { describe, expect, it, vi } from 'vitest' -import type { SshTarget } from '../../../shared/remote-runtime/ssh/ssh-types' -import { resolveHostServerOnConnect } from './ssh-host-server-on-connect' -import { hostServerDepsStub } from './testing/ssh-host-server-on-connect-test-deps' -import { unservedHostServerMessage } from './ssh-host-unserved-status' - -import { NodeRuntimeUnreachableError } from '../../managed-server/install/remote-node-runtime-host-download' - -const target: SshTarget = { id: 'ssh-1', label: 'Box', host: 'box', port: 22, username: 'me' } - -function unreachable(mirror?: 'unset' | 'tried' | 'unsupported'): NodeRuntimeUnreachableError { - return new NodeRuntimeUnreachableError( - 'https://nodejs.org/dist/v24.21.0/node-v24.21.0-linux-x64.tar.gz', - 'its downloads failed (curl: (7) Failed to connect)', - '/cache/node/archives/node.tar.gz', - new Error('net::ERR_CONNECTION_REFUSED'), - mirror - ) -} - -async function deployFailingWith(error: unknown) { - const warn = vi.spyOn(console, 'warn').mockImplementation(() => undefined) - try { - const result = await resolveHostServerOnConnect( - target, - hostServerDepsStub({ - isEmptyHost: () => true, - deploy: async () => { - throw error - } - }) - ) - if (result.route !== 'unserved') { - throw new Error('expected unserved') - } - return result - } finally { - warn.mockRestore() - } -} - -describe('a managed-server setup that could not download Node', () => { - it('reads the flag through a wrapping install error', async () => { - const wrapped = new Error('Installing the runtime failed', { cause: unreachable('unset') }) - await expect(deployFailingWith(wrapped)).resolves.toMatchObject({ - nodeDownloadBlocked: { mirror: 'unset' } - }) - }) - - it('never reads the flag from message text', async () => { - const lookalike = new Error(unreachable('unset').message) - const result = await deployFailingWith(lookalike) - expect(result).not.toHaveProperty('nodeDownloadBlocked') - expect(unservedHostServerMessage(result)).toContain('Try connecting again') - }) -}) diff --git a/src/main/text-generation/execution/source-control-generation-lanes.test.ts b/src/main/text-generation/execution/source-control-generation-lanes.test.ts deleted file mode 100644 index fb8555f6023..00000000000 --- a/src/main/text-generation/execution/source-control-generation-lanes.test.ts +++ /dev/null @@ -1,62 +0,0 @@ -import { describe, expect, it, vi } from 'vitest' -import { - CANCELED_GENERATION_RESULT, - cancelLocalGeneration, - clearLocalGenerationCancelToken, - localGenerationLaneKey, - runCancelableLocalGeneration, - setLocalGenerationCancelToken -} from './source-control-generation-lanes' - -describe('runCancelableLocalGeneration', () => { - it('settles as canceled when cancel lands before the agent spawns', async () => { - const preparation = Promise.withResolvers() - const spawn = vi.fn() - const run = runCancelableLocalGeneration('commit-message', '/repo', async (isCanceled) => { - await preparation.promise - if (isCanceled()) { - return 'skipped' - } - spawn() - return 'spawned' - }) - - cancelLocalGeneration('commit-message', '/repo') - - await expect(run).resolves.toBe(CANCELED_GENERATION_RESULT) - preparation.resolve() - await preparation.promise - expect(spawn).not.toHaveBeenCalled() - }) - - it('hands cancel to the token a spawned agent installs over the pending one', async () => { - const laneKey = localGenerationLaneKey('commit-message', '/repo') - const killAgent = vi.fn() - const agent = Promise.withResolvers() - const run = runCancelableLocalGeneration('commit-message', '/repo', () => { - setLocalGenerationCancelToken(laneKey, killAgent) - return agent.promise.finally(() => clearLocalGenerationCancelToken(laneKey, killAgent)) - }) - - cancelLocalGeneration('commit-message', '/repo') - expect(killAgent).toHaveBeenCalledOnce() - agent.resolve('agent canceled') - await expect(run).resolves.toBe('agent canceled') - }) - - it('leaves a newer request cancelable after an older one on the lane finishes', async () => { - const older = runCancelableLocalGeneration('commit-message', '/repo', async () => 'older') - const newerPreparation = Promise.withResolvers() - const newer = runCancelableLocalGeneration( - 'commit-message', - '/repo', - () => newerPreparation.promise - ) - await expect(older).resolves.toBe('older') - - cancelLocalGeneration('commit-message', '/repo') - - await expect(newer).resolves.toBe(CANCELED_GENERATION_RESULT) - newerPreparation.resolve('late') - }) -}) diff --git a/src/main/wsl/execution/wsl-managed-cli-path-restore.test.ts b/src/main/wsl/execution/wsl-managed-cli-path-restore.test.ts deleted file mode 100644 index 8eefc67ab6b..00000000000 --- a/src/main/wsl/execution/wsl-managed-cli-path-restore.test.ts +++ /dev/null @@ -1,55 +0,0 @@ -import { chmodSync, mkdtempSync, rmSync, writeFileSync } from 'node:fs' -import { tmpdir } from 'node:os' -import { join } from 'node:path' -import { afterAll, describe, expect, it } from 'vitest' -import { runProcessSync } from '@orca/process-host' -import { WSL_MANAGED_CLI_PATH_RESTORE } from './wsl-managed-cli-path-restore' - -const posix = process.platform !== 'win32' -const hasZsh = posix && runProcessSync({ program: 'sh', args: ['-c', 'command -v zsh'] }).code === 0 -const root = posix ? mkdtempSync(join(tmpdir(), 'orca managed cli restore ')) : '' -if (posix) { - writeFileSync(join(root, 'orca-dev'), '#!/bin/sh\n') - chmodSync(join(root, 'orca-dev'), 0o755) - writeFileSync(join(root, 'orca-ide'), '#!/bin/sh\n') - chmodSync(join(root, 'orca-ide'), 0o644) -} -afterAll(() => { - if (root) { - rmSync(root, { recursive: true, force: true }) - } -}) - -// Mirrors how each shell embeds the snippet: bash rcfile top level, zsh first-prompt hook. -const SHELLS = [ - { name: 'bash', enabled: posix, args: (body: string) => ['--norc', '--noprofile', '-uc', body] }, - { - name: 'zsh', - enabled: hasZsh, - args: (body: string) => ['-fuc', `__orca_hook() {\n emulate -L zsh\n${body}\n}\n__orca_hook`] - } -] as const - -function run( - shell: (typeof SHELLS)[number], - env: Record -): { code: number | null; stdout: string; stderr: string } { - return runProcessSync({ - program: shell.name, - args: shell.args(`${WSL_MANAGED_CLI_PATH_RESTORE}\nprintf '%s' "$PATH"`), - env: { PATH: '/usr/bin:/bin', ...env } - }) -} - -describe.each(SHELLS)('WSL_MANAGED_CLI_PATH_RESTORE in $name', (shell) => { - it.skipIf(!shell.enabled)('leads PATH with a directory holding an executable CLI', () => { - const result = run(shell, { ORCA_WSL_CLI_DIR: root, ORCA_CLI_COMMAND: 'orca-dev' }) - expect(result).toMatchObject({ code: 0, stdout: `${root}:/usr/bin:/bin`, stderr: '' }) - }) - - it.skipIf(!shell.enabled)('warns and keeps PATH when the CLI cannot run', () => { - const result = run(shell, { ORCA_WSL_CLI_DIR: root, ORCA_CLI_COMMAND: 'orca-ide' }) - expect(result).toMatchObject({ code: 0, stdout: '/usr/bin:/bin' }) - expect(result.stderr).toContain('Orca CLI unavailable') - }) -}) diff --git a/src/main/wsl/history/wsl-fish-history-cleanup.test.ts b/src/main/wsl/history/wsl-fish-history-cleanup.test.ts deleted file mode 100644 index 1874ff68009..00000000000 --- a/src/main/wsl/history/wsl-fish-history-cleanup.test.ts +++ /dev/null @@ -1,69 +0,0 @@ -import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest' -import { - __resetWslFishHistoryCleanups, - deleteWslFishHistoryFile, - flushWslFishHistoryCleanups -} from './wsl-fish-history-cleanup' - -const okResult = { environmentResolved: true, code: 0, stdout: '', stderr: '', timedOut: false } -const running = async (): Promise => true - -beforeEach(() => { - __resetWslFishHistoryCleanups() -}) - -afterEach(async () => { - await flushWslFishHistoryCleanups() - __resetWslFishHistoryCleanups() -}) - -describe('deleteWslFishHistoryFile', () => { - it('rejects an unsafe session before spawning', async () => { - const run = vi.fn() - - await deleteWslFishHistoryFile('Ubuntu', '../../user-history', run, running) - - expect(run).not.toHaveBeenCalled() - }) - - it('coalesces concurrent requests for the same distro and session', async () => { - let settle!: () => void - const run = vi.fn().mockReturnValue( - new Promise((resolve) => { - settle = () => resolve(okResult) - }) - ) - const session = 'orca_0123456789abcdef' - - const first = deleteWslFishHistoryFile('Ubuntu', session, run, running) - const second = deleteWslFishHistoryFile('Ubuntu', session, run, running) - - expect(second).toBe(first) - await vi.waitFor(() => expect(run).toHaveBeenCalledTimes(1)) - settle() - await Promise.all([first, second]) - }) - - it('permits a retry once a failed cleanup settles', async () => { - const run = vi - .fn() - .mockRejectedValueOnce(new Error('distro offline')) - .mockResolvedValue(okResult) - const session = 'orca_0123456789abcdef' - - await expect(deleteWslFishHistoryFile('Ubuntu', session, run, running)).rejects.toThrow( - 'distro offline' - ) - await expect(deleteWslFishHistoryFile('Ubuntu', session, run, running)).resolves.toBe('deleted') - expect(run).toHaveBeenCalledTimes(2) - }) - - it('does not spawn into a stopped distro and reports it for a later retry', async () => { - const run = vi.fn().mockResolvedValue(okResult) - - await expect( - deleteWslFishHistoryFile('Ubuntu', 'orca_0123456789abcdef', run, async () => false) - ).resolves.toBe('distro-stopped') - expect(run).not.toHaveBeenCalled() - }) -}) diff --git a/src/renderer/src/components/agent/agent-launch-picker-inventory-freshness.test.tsx b/src/renderer/src/components/agent/agent-launch-picker-inventory-freshness.test.tsx deleted file mode 100644 index b1a10e51f28..00000000000 --- a/src/renderer/src/components/agent/agent-launch-picker-inventory-freshness.test.tsx +++ /dev/null @@ -1,187 +0,0 @@ -// @vitest-environment happy-dom -import { act, cleanup, renderHook, waitFor } from '@testing-library/react' -import { afterEach, expect, it, vi } from 'vitest' -import { useAppStore } from '@/store' -import { getDefaultSettings } from '../../../../shared/constants' -import { useAgentLaunchPickerInventory } from './use-agent-launch-picker-inventory' -import type { UseDetectedAgentsResult } from '@/hooks/useDetectedAgents' -import type { NewTabAgentMenuModel } from '../tab-bar/new-tab-agent-menu-model' -import { - loadHostStructuredAgents, - resetHostStructuredAgentsForTests -} from '@/runtime/native-chat/agent-catalogs/host-structured-agents' -import { STRUCTURED_AGENT_SESSION_REGISTERED_AGENTS_RUNTIME_CAPABILITY as REGISTERED } from '../../../../shared/agent-session/structured-agent-session-surface-capabilities' -import { TEST_REPO } from '@/store/repos/repo.test-fixture' -const transport = vi.hoisted(() => ({ call: vi.fn(), rpc: vi.fn(), defaults: vi.fn() })) -vi.mock('@/runtime/native-chat/requests/structured-agent-session-call', () => ({ - callStructuredAgentSession: transport.call -})) -vi.mock('@/runtime/rpc/calls/runtime-rpc-call', () => ({ callRuntimeRpc: transport.rpc })) -vi.mock('@/runtime/agent-launch-settings/agent-launch-settings-transport', () => ({ - readHostAgentLaunchDefaults: transport.defaults -})) -const initial = useAppStore.getState() -const previousApi = Object.getOwnPropertyDescriptor(window, 'api') -afterEach(() => { - cleanup() - useAppStore.setState(initial, true) - resetHostStructuredAgentsForTests() - vi.resetAllMocks() - if (previousApi) { - Object.defineProperty(window, 'api', previousApi) - } else { - Reflect.deleteProperty(window, 'api') - } -}) -const detection: UseDetectedAgentsResult = { - detectedIds: ['codex'], - isLoading: false, - isRefreshing: false, - detectionFailed: false, - needsServerUpdate: false, - refresh: async () => ['codex'] -} - -it('reads a paired unknown-platform catalog before launch defaults and keeps it after defaults fail', async () => { - useAppStore.setState({ settings: getDefaultSettings('/synthetic') }) - transport.rpc.mockResolvedValue({ agents: [] }) - await loadHostStructuredAgents('runtime:unknown-platform', [REGISTERED], 'server-runtime') - const defaults = Promise.withResolvers() - transport.defaults.mockReturnValue(defaults.promise) - transport.call.mockResolvedValue({ - origin: 'probe', - fetchedAt: 1, - models: [{ id: 'server-only', label: 'Server', isDefault: false, efforts: [] }] - }) - const model: NewTabAgentMenuModel = { - state: 'settled', - rows: [{ agent: 'codex', kind: 'cli' }], - detection, - pickerContext: { - workspace: { - kind: 'git-worktree', - repoId: 'future', - executionHostId: 'runtime:unknown-platform' - }, - executionHostId: 'runtime:unknown-platform', - runtimeId: 'server-runtime', - settings: null, - key: 'unknown-platform' - } - } - const hook = renderHook(() => useAgentLaunchPickerInventory(undefined, model, true)) - await waitFor(() => - expect(hook.result.current[0]).toMatchObject({ - catalogRead: 'settled', - defaultsPending: true, - catalog: { models: [{ id: 'server-only' }] } - }) - ) - await act(async () => { - defaults.reject(new Error('defaults offline')) - }) - expect(hook.result.current[0]).toMatchObject({ - catalogRead: 'settled', - catalog: { models: [{ id: 'server-only' }] } - }) -}) - -it('reads the structured host list for a local UNC workspace instead of gating on its terminal route', async () => { - Object.defineProperty(window, 'api', { - configurable: true, - value: { platform: { get: () => ({ platform: 'win32' }) } } - }) - useAppStore.setState({ - settings: getDefaultSettings('/synthetic'), - repos: [ - { - ...TEST_REPO, - id: 'unc', - path: '\\\\wsl.localhost\\Ubuntu\\home\\app', - executionHostId: 'local' - } - ] - }) - transport.call.mockResolvedValue({ - origin: 'probe', - fetchedAt: 1, - models: [{ id: 'host-only', label: 'Host', isDefault: false, efforts: [] }] - }) - const model: NewTabAgentMenuModel = { - state: 'settled', - rows: [{ agent: 'codex', kind: 'cli' }], - detection, - pickerContext: { - workspace: { kind: 'git-worktree', repoId: 'unc' }, - executionHostId: 'local', - settings: {}, - key: 'local-unc' - } - } - const hook = renderHook(() => useAgentLaunchPickerInventory(undefined, model, true)) - await waitFor(() => - expect(hook.result.current[0]).toMatchObject({ - catalogRead: 'settled', - catalog: { models: [{ id: 'host-only' }] } - }) - ) -}) - -it('reloads paired launch defaults when reopening while the old catalog request drains', async () => { - useAppStore.setState({ settings: getDefaultSettings('/synthetic') }) - const catalog = Promise.withResolvers() - const admitted = Promise.withResolvers() - const defaults = Promise.withResolvers<{ - settings: { agentDefaultArgs: { codex: string } } - structuredKnown: boolean - }>() - transport.call.mockImplementation(() => { - admitted.resolve() - return catalog.promise - }) - transport.defaults.mockReturnValueOnce(defaults.promise).mockResolvedValue({ - settings: { - agentDefaultArgs: { codex: '--add-dir fresh' }, - nativeChatSessionOptions: { - codex: { model: 'fresh-default', valuesByModel: { 'fresh-default': { effort: 'high' } } } - } - }, - structuredKnown: true - }) - const model: NewTabAgentMenuModel = { - state: 'settled', - rows: [{ agent: 'codex', kind: 'cli' }], - detection, - pickerContext: { - workspace: { kind: 'floating', executionHostId: 'runtime:defaults-reopen' }, - executionHostId: 'runtime:defaults-reopen', - runtimeId: 'defaults-server', - settings: null, - key: 'defaults-reopen' - } - } - const hook = renderHook(({ open }) => useAgentLaunchPickerInventory(undefined, model, open), { - initialProps: { open: true } - }) - await act(async () => admitted.promise) - hook.rerender({ open: false }) - await act(async () => { - defaults.resolve({ - settings: { agentDefaultArgs: { codex: '--add-dir old' } }, - structuredKnown: true - }) - }) - hook.rerender({ open: true }) - try { - await waitFor(() => - expect(hook.result.current[0]).toMatchObject({ - defaultsPending: false, - arguments: '--add-dir fresh', - structured: { model: 'fresh-default', options: { effort: 'high' } } - }) - ) - } finally { - hook.unmount() - await act(async () => catalog.reject(new Error('closed catalog'))) - } -}) diff --git a/src/renderer/src/components/editor/markdown-preview/search/use-markdown-preview-search-reveal.test.tsx b/src/renderer/src/components/editor/markdown-preview/search/use-markdown-preview-search-reveal.test.tsx deleted file mode 100644 index e62db8b6b37..00000000000 --- a/src/renderer/src/components/editor/markdown-preview/search/use-markdown-preview-search-reveal.test.tsx +++ /dev/null @@ -1,167 +0,0 @@ -// @vitest-environment happy-dom -import { act, renderHook } from '@testing-library/react' -import { Virtualizer } from '@tanstack/react-virtual' -import { createProgrammaticScrollMarks } from '@/hooks/programmatic-scroll-marks' -import { afterEach, describe, expect, it, vi } from 'vitest' -import { MarkdownPreviewDocumentClient } from '../document-worker/markdown-preview-document-client' -import type { MarkdownPreviewDocumentMatch } from '../document-worker/markdown-preview-document-types' -import { useMarkdownPreviewSearchReveal } from './use-markdown-preview-search-reveal' - -function setup() { - const root = document.createElement('div') - const input = document.createElement('input') - root.append(input) - const client = new MarkdownPreviewDocumentClient( - { postMessage: vi.fn(), terminate: vi.fn(), onmessage: null, onerror: null }, - vi.fn() - ) - const virtualizer = new Virtualizer({ - count: 2, - getScrollElement: () => root, - estimateSize: () => 100, - scrollToFn: () => {}, - observeElementRect: () => () => {}, - observeElementOffset: () => () => {}, - initialRect: { width: 100, height: 100 } - }) - const scroll = vi.spyOn(virtualizer, 'scrollToIndex') - const options = { - client, - blocks: null, - components: {}, - viewportReady: false, - rootRef: { current: root }, - bodyRef: { current: root }, - virtualizer, - scrollMarks: createProgrammaticScrollMarks(), - searchInstance: {} - } - const initialProps: { activeMatch: MarkdownPreviewDocumentMatch | undefined; query: string } = { - activeMatch: undefined, - query: 'needle' - } - const hook = renderHook( - ({ - activeMatch, - query - }: { - activeMatch: MarkdownPreviewDocumentMatch | undefined - query: string - }) => useMarkdownPreviewSearchReveal({ ...options, activeMatch, query }), - { initialProps } - ) - return { ...hook, root, input, scroll, client } -} - -afterEach(() => vi.unstubAllGlobals()) - -describe('virtual Find navigation ownership', () => { - it.each(['wheel', 'touchmove', 'pointerdown', 'keydown'])( - 'lets %s input cancel a result before worker blocks arrive, while Next still works', - (type) => { - const { root, scroll, rerender, unmount, client } = setup() - act(() => - root.dispatchEvent( - type === 'keydown' - ? new KeyboardEvent(type, { key: 'PageDown', bubbles: true }) - : new Event(type, { bubbles: true }) - ) - ) - const first = { block: 0, occurrence: 0 } - rerender({ activeMatch: first, query: 'needle' }) - expect(scroll).not.toHaveBeenCalled() - rerender({ activeMatch: { block: 1, occurrence: 0 }, query: 'needle' }) - expect(scroll).toHaveBeenCalledExactlyOnceWith(1, { align: 'center' }) - unmount() - client.close() - } - ) - - it('lets explicit Next reveal a single match after its initial result was cancelled', () => { - const { root, scroll, rerender, result, unmount, client } = setup() - act(() => root.dispatchEvent(new Event('wheel'))) - rerender({ activeMatch: { block: 0, occurrence: 0 }, query: 'needle' }) - expect(scroll).not.toHaveBeenCalled() - act(() => result.current()) - expect(scroll).toHaveBeenCalledExactlyOnceWith(0, { align: 'center' }) - unmount() - client.close() - }) - - it('keeps query editing independent of viewport scroll input and cleans up listeners', () => { - const { root, input, scroll, rerender, unmount, client } = setup() - const remove = vi.spyOn(root, 'removeEventListener') - act(() => input.dispatchEvent(new KeyboardEvent('keydown', { key: 'Home', bubbles: true }))) - rerender({ activeMatch: { block: 1, occurrence: 0 }, query: 'needle' }) - expect(scroll).toHaveBeenCalledExactlyOnceWith(1, { align: 'center' }) - unmount() - for (const type of ['wheel', 'touchmove', 'pointerdown', 'keydown']) { - expect(remove.mock.calls.some(([name]) => name === type)).toBe(true) - } - client.close() - }) -}) - -describe('Find ranges after rendered content changes', () => { - it('repaints replaced code without taking navigation back from manual scrolling', () => { - const registry = new Map>() - vi.stubGlobal('CSS', { highlights: registry }) - vi.stubGlobal('Highlight', Set) - const root = document.createElement('div') - const block = document.createElement('div') - block.dataset.previewBlockIndex = '0' - const code = document.createElement('code') - code.textContent = 'const needle = 42' - block.append(code) - root.append(block) - const client = new MarkdownPreviewDocumentClient( - { postMessage: vi.fn(), terminate: vi.fn(), onmessage: null, onerror: null }, - vi.fn() - ) - const virtualizer = new Virtualizer({ - count: 1, - getScrollElement: () => root, - estimateSize: () => 100, - scrollToFn: () => {}, - observeElementRect: () => () => {}, - observeElementOffset: () => () => {}, - initialRect: { width: 100, height: 400 } - }) - vi.spyOn(virtualizer, 'scrollToIndex').mockImplementation(() => {}) - vi.spyOn(root, 'getBoundingClientRect').mockReturnValue(new DOMRect(0, 0, 100, 400)) - const bounds = vi.spyOn(Range.prototype, 'getBoundingClientRect') - bounds.mockReturnValue(new DOMRect(0, 120, 80, 20)) - const scroll = vi.spyOn(root, 'scrollTo').mockImplementation(() => {}) - const options = { - client, - activeMatch: { block: 0, occurrence: 0 }, - query: 'const needle', - blocks: [], - viewportReady: true, - rootRef: { current: root }, - bodyRef: { current: root }, - virtualizer, - scrollMarks: createProgrammaticScrollMarks(), - searchInstance: {} - } - const { rerender, unmount } = renderHook( - ({ components }) => useMarkdownPreviewSearchReveal({ ...options, components }), - { initialProps: { components: {} } } - ) - const before = [...(registry.get('markdown-preview-search-active-match') ?? [])][0] - expect(before?.toString()).toBe('const needle') - act(() => root.dispatchEvent(new Event('wheel'))) - const replacement = document.createElement('code') - replacement.textContent = code.textContent - code.replaceWith(replacement) - rerender({ components: {} }) - const after = [...(registry.get('markdown-preview-search-active-match') ?? [])][0] - expect(after?.toString()).toBe('const needle') - expect(after?.startContainer).toBe(replacement.firstChild) - expect(after).not.toBe(before) - expect(scroll).toHaveBeenCalledOnce() - unmount() - client.close() - bounds.mockRestore() - }) -}) diff --git a/src/renderer/src/components/mobile/use-mobile-page-paired-devices.test.ts b/src/renderer/src/components/mobile/use-mobile-page-paired-devices.test.ts deleted file mode 100644 index 703cf2f115b..00000000000 --- a/src/renderer/src/components/mobile/use-mobile-page-paired-devices.test.ts +++ /dev/null @@ -1,225 +0,0 @@ -// @vitest-environment happy-dom - -import { act, createElement, useState } from 'react' -import { createRoot, type Root } from 'react-dom/client' -import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest' -import { _resetPairedMobileDevicesCacheForTests } from './paired-mobile-devices' -import type { StepIndex } from './MobileHero' - -const mocks = vi.hoisted(() => ({ - listDevices: vi.fn(), - revokeDevice: vi.fn(), - toastError: vi.fn(), - toastSuccess: vi.fn() -})) - -vi.mock('sonner', () => ({ - toast: { - error: mocks.toastError, - success: mocks.toastSuccess - } -})) - -// Disable polling to isolate the listDevices calls made directly by this hook. -vi.mock('./pairing/mobile-pairing-device-polling', () => ({ - useMobilePairingDevicePolling: (): void => {} -})) - -import { useMobilePagePairedDevices } from './use-mobile-page-paired-devices' - -type HookApi = ReturnType - -let latest: HookApi | null = null -let latestStep: StepIndex | null = null - -function Probe(): null { - const [stepIdx, setStepIdx] = useState(0) - latestStep = stepIdx - latest = useMobilePagePairedDevices({ stepIdx, setStepIdx }) - return null -} - -const mountedRoots: Root[] = [] - -function device(deviceId: string): { - deviceId: string - name: string - pairedAt: number - lastSeenAt: number -} { - return { deviceId, name: deviceId, pairedAt: 1, lastSeenAt: 2 } -} - -async function renderProbe(): Promise { - const container = document.createElement('div') - document.body.appendChild(container) - const root = createRoot(container) - mountedRoots.push(root) - await act(async () => { - root.render(createElement(Probe)) - }) -} - -async function unmountProbes(): Promise { - await act(async () => { - for (const root of mountedRoots.splice(0)) { - root.unmount() - } - }) -} - -describe('useMobilePagePairedDevices', () => { - beforeEach(() => { - vi.clearAllMocks() - latest = null - latestStep = null - _resetPairedMobileDevicesCacheForTests() - Object.defineProperty(window, 'api', { - configurable: true, - value: { - mobile: { - listDevices: mocks.listDevices, - revokeDevice: mocks.revokeDevice - } - } - }) - }) - - afterEach(async () => { - await unmountProbes() - document.body.innerHTML = '' - }) - - it('returns to the paired summary from step 0 while devices exist', async () => { - mocks.listDevices.mockResolvedValue({ devices: [device('phone-1')] }) - - await renderProbe() - await vi.waitFor(() => expect(latest?.stage).toBe('paired')) - - await act(async () => { - latest?.enterFlow() - }) - expect(latest?.stage).toBe('flow') - - await act(async () => { - latest?.handleBack() - }) - expect(latest?.stage).toBe('paired') - }) - - it('returns to intro from step 0 when no devices exist', async () => { - mocks.listDevices.mockResolvedValue({ devices: [] }) - - await renderProbe() - await vi.waitFor(() => expect(latest?.stage).toBe('intro')) - - await act(async () => { - latest?.enterFlow() - }) - expect(latest?.stage).toBe('flow') - - await act(async () => { - latest?.handleBack() - }) - expect(latest?.stage).toBe('intro') - }) - - it('steps back to step 0 from step 1 without leaving the flow', async () => { - mocks.listDevices.mockResolvedValue({ devices: [device('phone-1')] }) - - await renderProbe() - await vi.waitFor(() => expect(latest?.stage).toBe('paired')) - - await act(async () => { - latest?.pairAnotherDevice() - }) - expect(latestStep).toBe(1) - expect(latest?.stage).toBe('flow') - - await act(async () => { - latest?.handleBack() - }) - expect(latestStep).toBe(0) - expect(latest?.stage).toBe('flow') - }) - - it('keeps the device and shows an error when revoke returns revoked:false', async () => { - mocks.listDevices.mockResolvedValue({ devices: [device('phone-1')] }) - mocks.revokeDevice.mockResolvedValue({ revoked: false }) - - await renderProbe() - await vi.waitFor(() => expect(latest?.stage).toBe('paired')) - - await act(async () => { - await latest?.revokeDevice('phone-1') - }) - - expect(mocks.toastError).toHaveBeenCalledTimes(1) - expect(mocks.toastSuccess).not.toHaveBeenCalled() - expect(mocks.listDevices).toHaveBeenCalledTimes(1) - expect(latest?.devices.map((d) => d.deviceId)).toEqual(['phone-1']) - }) - - it('routes to intro after revoking the last device', async () => { - mocks.listDevices - .mockResolvedValueOnce({ devices: [device('phone-1')] }) - .mockResolvedValueOnce({ devices: [] }) - mocks.revokeDevice.mockResolvedValue({ revoked: true }) - - await renderProbe() - await vi.waitFor(() => expect(latest?.stage).toBe('paired')) - - await act(async () => { - await latest?.revokeDevice('phone-1') - }) - - expect(mocks.revokeDevice).toHaveBeenCalledWith({ deviceId: 'phone-1' }) - expect(mocks.toastSuccess).toHaveBeenCalledTimes(1) - await vi.waitFor(() => expect(latest?.stage).toBe('intro')) - expect(latest?.devices).toEqual([]) - }) - - it('optimistically drops the device and still succeeds when the post-revoke refresh fails', async () => { - mocks.listDevices - .mockResolvedValueOnce({ devices: [device('phone-1')] }) - .mockRejectedValueOnce(new Error('refresh failed')) - mocks.revokeDevice.mockResolvedValue({ revoked: true }) - - await renderProbe() - await vi.waitFor(() => expect(latest?.stage).toBe('paired')) - - await act(async () => { - await latest?.revokeDevice('phone-1') - }) - - // A failed reload cannot undo server-side revocation; report success and remove the device optimistically. - expect(mocks.toastSuccess).toHaveBeenCalledTimes(1) - expect(mocks.toastError).not.toHaveBeenCalled() - await vi.waitFor(() => expect(latest?.devices).toEqual([])) - await vi.waitFor(() => expect(latest?.stage).toBe('intro')) - }) - - it('issues one revoke call for a rapid double-click', async () => { - mocks.listDevices.mockResolvedValue({ devices: [device('phone-1')] }) - let releaseRevoke: (() => void) | null = null - mocks.revokeDevice.mockImplementation( - () => - new Promise((resolve) => { - releaseRevoke = () => resolve({ revoked: true }) - }) - ) - - await renderProbe() - await vi.waitFor(() => expect(latest?.stage).toBe('paired')) - - await act(async () => { - void latest?.revokeDevice('phone-1') - void latest?.revokeDevice('phone-1') - }) - - expect(mocks.revokeDevice).toHaveBeenCalledTimes(1) - await act(async () => { - releaseRevoke?.() - }) - }) -}) diff --git a/src/renderer/src/components/native-chat/links/previews/native-chat-github-route-repo.test.ts b/src/renderer/src/components/native-chat/links/previews/native-chat-github-route-repo.test.ts deleted file mode 100644 index 2e423aef34d..00000000000 --- a/src/renderer/src/components/native-chat/links/previews/native-chat-github-route-repo.test.ts +++ /dev/null @@ -1,169 +0,0 @@ -import { beforeEach, describe, expect, it, vi } from 'vitest' -import type { Repo } from '../../../../../../shared/repository/repo-types' -import { parseGitHubIssueOrPRLink } from '../../../../../../shared/github/repositories/links' -import { clearRepoSlugCacheValues } from '@/lib/workspace/catalog/repo-slug-cache' - -const mocks = await vi.hoisted(async () => { - const { createStore } = await import('zustand/vanilla') - const store = createStore<{ repos: Repo[] }>(() => ({ repos: [] })) - return { - store, - get repos() { - return store.getState().repos - }, - set repos(repos: Repo[]) { - store.setState({ repos }) - }, - slugs: new Map(), - lookup: vi.fn() - } -}) - -vi.mock('@/store/index', () => ({ - useAppStore: mocks.store -})) -vi.mock('@/lib/workspace/catalog/repo-slug-index', async () => { - const { rememberRepoSlug, repoSlugCacheKey } = - await import('@/lib/workspace/catalog/repo-slug-cache') - return { - resolveRepoSlug: async (repo: Repo) => { - const slug = mocks.slugs.get(repo.id) ?? null - const key = repoSlugCacheKey(repo) - if (key) { - rememberRepoSlug(key, slug) - } - return slug - } - } -}) -vi.mock('@/lib/work-items/github/github-work-item-source-lookup', () => ({ - lookupGitHubWorkItemByOwnerRepoForSource: mocks.lookup -})) - -const { githubPreviewRouteCandidates, pickGitHubPreviewRouteRepo } = - await import('./native-chat-github-route-repo') -const { loadRoutedGitHubLinkPreview, readCachedRoutedGitHubLinkPreview } = - await import('./native-chat-github-link-preview') - -function repo(id: string, extra: Partial = {}): Repo { - return { id, path: `/src/${id}`, displayName: id, badgeColor: '', addedAt: 0, ...extra } -} - -const privatePr = parseGitHubIssueOrPRLink('https://github.com/stablyai/orca-private/pull/685')! - -describe('GitHub preview routing for a chat without a repo of its own', () => { - beforeEach(() => { - mocks.repos = [] - mocks.slugs.clear() - clearRepoSlugCacheValues() - mocks.lookup.mockReset() - }) - - it('keeps git repos on the chat host only', () => { - const local = repo('local') - const remote = repo('ssh', { connectionId: 'box' }) - const runtime = repo('rt', { executionHostId: 'runtime:env' }) - const folder = repo('folder', { kind: 'folder' }) - const all = [local, remote, runtime, folder] - expect(githubPreviewRouteCandidates(all, 'local')).toEqual([local]) - expect(githubPreviewRouteCandidates(all, 'runtime:env')).toEqual([runtime]) - }) - - it('separates endpoint-local repos from each nested SSH target on the same runtime', () => { - const local = repo('local') - const endpoint = repo('endpoint', { executionHostId: 'runtime:env' }) - const targetT = repo('target-t', { executionHostId: 'runtime:env', connectionId: 'T' }) - const targetU = repo('target-u', { executionHostId: 'runtime:env', connectionId: 'U' }) - const directT = repo('direct-t', { connectionId: 'T' }) - const candidates = [local, endpoint, targetT, targetU, directT] - expect(githubPreviewRouteCandidates(candidates, 'local')).toEqual([local]) - expect(githubPreviewRouteCandidates(candidates, 'runtime:env')).toEqual([endpoint]) - expect(githubPreviewRouteCandidates(candidates, 'nested:env/T')).toEqual([targetT]) - expect(githubPreviewRouteCandidates(candidates, 'nested:env/U')).toEqual([targetU]) - expect(githubPreviewRouteCandidates(candidates, 'ssh:T')).toEqual([directT]) - }) - - it('prefers an exact clone before a fork upstream, then any repo on the GitHub host', () => { - const orca = repo('orca') - const fork = repo('fork', { upstream: { owner: 'stablyai', repo: 'orca-private' } }) - const clone = repo('clone') - const ghes = repo('ghes') - const rows = [ - { repo: ghes, originKey: 'git.corp.example/team/app' }, - { repo: orca, originKey: 'stablyai/orca' }, - { repo: fork, originKey: 'me/orca-private' }, - { repo: clone, originKey: 'stablyai/orca-private' } - ] - expect(pickGitHubPreviewRouteRepo(rows, privatePr)).toBe(clone) - expect(pickGitHubPreviewRouteRepo(rows.slice(0, 3), privatePr)).toBe(fork) - expect(pickGitHubPreviewRouteRepo(rows.slice(0, 2), privatePr)).toBe(orca) - expect(pickGitHubPreviewRouteRepo(rows.slice(0, 1), privatePr)).toBeNull() - expect(pickGitHubPreviewRouteRepo([{ repo: orca, originKey: null }], privatePr)).toBeNull() - }) - - it('uses the remaining repo after the repo that answered is removed', async () => { - const link = parseGitHubIssueOrPRLink('https://github.com/acme/private/pull/701')! - const alice = repo('alice', { ghAccount: { host: 'github.com', user: 'alice' } }) - const bob = repo('bob', { ghAccount: { host: 'github.com', user: 'bob' } }) - mocks.repos = [alice, bob] - mocks.slugs.set('alice', 'acme/alice') - mocks.slugs.set('bob', 'acme/bob') - mocks.lookup.mockImplementation(async ({ repoId }) => ({ title: `${repoId}'s preview` })) - - await expect(loadRoutedGitHubLinkPreview('local', link)).resolves.toEqual({ - title: "alice's preview" - }) - mocks.repos = [bob] - expect(readCachedRoutedGitHubLinkPreview('local', link)).toBeNull() - await expect(loadRoutedGitHubLinkPreview('local', link)).resolves.toEqual({ - title: "bob's preview" - }) - }) - - it('leaves no cached preview when the last eligible repo is removed', async () => { - const link = parseGitHubIssueOrPRLink('https://github.com/acme/private/pull/702')! - mocks.repos = [repo('alice')] - mocks.slugs.set('alice', 'acme/alice') - mocks.lookup.mockResolvedValue({ title: "alice's preview" }) - - await expect(loadRoutedGitHubLinkPreview('local', link)).resolves.toEqual({ - title: "alice's preview" - }) - mocks.repos = [] - expect(readCachedRoutedGitHubLinkPreview('local', link)).toBeNull() - await expect(loadRoutedGitHubLinkPreview('local', link)).resolves.toBeNull() - }) - - it('reloads a preview when the answering repo changes its account binding', async () => { - const link = parseGitHubIssueOrPRLink('https://github.com/acme/private/pull/703')! - const alice = repo('bound', { ghAccount: { host: 'github.com', user: 'alice' } }) - mocks.repos = [alice] - mocks.slugs.set('bound', 'acme/bound') - mocks.lookup.mockResolvedValueOnce({ title: "alice's preview" }).mockResolvedValueOnce(null) - - await expect(loadRoutedGitHubLinkPreview('local', link)).resolves.toEqual({ - title: "alice's preview" - }) - mocks.repos = [{ ...alice, ghAccount: { host: 'github.com', user: 'bob' } }] - expect(readCachedRoutedGitHubLinkPreview('local', link)).toBeNull() - await expect(loadRoutedGitHubLinkPreview('local', link)).resolves.toBeNull() - }) - - it('uses a newly resolved exact clone instead of the previously cached fallback', async () => { - const link = parseGitHubIssueOrPRLink('https://github.com/acme/private/pull/704')! - mocks.repos = [repo('alice'), repo('bob')] - mocks.slugs.set('bob', 'acme/bob') - mocks.lookup.mockImplementation(async ({ repoId }) => ({ title: `${repoId}'s preview` })) - - await expect(loadRoutedGitHubLinkPreview('local', link)).resolves.toEqual({ - title: "bob's preview" - }) - mocks.slugs.set('alice', 'acme/private') - await expect(loadRoutedGitHubLinkPreview('local', link)).resolves.toEqual({ - title: "alice's preview" - }) - expect(readCachedRoutedGitHubLinkPreview('local', link)).toEqual({ - title: "alice's preview" - }) - }) -}) diff --git a/src/renderer/src/components/sidebar/worktree-list/viewport/sidebar-smooth-reveal.test.tsx b/src/renderer/src/components/sidebar/worktree-list/viewport/sidebar-smooth-reveal.test.tsx deleted file mode 100644 index b51299619e2..00000000000 --- a/src/renderer/src/components/sidebar/worktree-list/viewport/sidebar-smooth-reveal.test.tsx +++ /dev/null @@ -1,170 +0,0 @@ -// @vitest-environment happy-dom -import { act, useMemo } from 'react' -import { cleanup, renderHook } from '@testing-library/react' -import { afterEach, beforeEach, expect, it, vi } from 'vitest' -import { createProgrammaticScrollMarks } from '@/hooks/programmatic-scroll-marks' -import type { VirtualizedScrollAnchor } from '@/hooks/useVirtualizedScrollAnchor' -import { supersedeVirtualizedScrollAnchorRestore } from '@/hooks/requestVirtualizedScrollAnchorRecord' -import { buildLineageRowProjection } from '../listing/lineage-row-projection' -import type { RenderRow } from '../listing/render-row' -import { repo, worktree } from '../grouping/worktree-list-groups-test-fixtures' -import { revealElementInScrollContainer } from '../navigation/worktree-sidebar-reveal' -import { useWorktreeListVirtualizer } from './use-virtualizer' -import { useVirtualRowMeasurementSync } from './use-row-measurement' -import { useWorktreeSidebarScrollSuppression } from './use-scroll-suppression' - -const caches = vi.hoisted(() => ({ prCache: {}, issueCache: {} })) -vi.mock('@/store', () => ({ - useAppStore: (selector: (state: typeof caches) => unknown) => selector(caches) -})) -beforeEach(() => { - vi.useFakeTimers() - vi.spyOn(window, 'requestAnimationFrame').mockReturnValue(1) - vi.spyOn(window, 'cancelAnimationFrame').mockImplementation(() => {}) -}) -afterEach(() => { - cleanup() - document.body.replaceChildren() - vi.restoreAllMocks() - vi.useRealTimers() -}) - -function setup() { - const scroller = document.createElement('div') - document.body.append(scroller) - Object.defineProperties(scroller, { - clientHeight: { value: 300 }, - offsetHeight: { value: 300 }, - offsetWidth: { value: 300 }, - scrollHeight: { value: 10000 } - }) - scroller.getBoundingClientRect = () => new DOMRect(0, 0, 300, 300) - scroller.scrollTo = (options?: ScrollToOptions | number) => { - if (typeof options === 'object' && options.behavior !== 'smooth') { - scroller.scrollTop = options.top ?? scroller.scrollTop - } - } - const rows: RenderRow[] = Array.from({ length: 60 }, (_, index) => ({ - type: 'item', - rowKey: String(index), - sectionKey: 'all', - repo, - worktree: { ...worktree, id: String(index) }, - depth: 0, - groupDepth: 0, - isLastLineageChild: false, - lineageChildCount: 0 - })) - const scrollRef = { current: scroller } - const scrollOffsetRef = { current: 0 } - const scrollAnchorRef: { current: VirtualizedScrollAnchor } = { current: null } - const marks = createProgrammaticScrollMarks() - const view = renderHook(() => { - const projection = useMemo(() => buildLineageRowProjection(rows, 'none', false), []) - const virtualization = useWorktreeListVirtualizer({ - renderRows: rows, - projection, - firstHeaderIndex: -1, - scrollRef, - scrollOffsetRef, - programmaticScrollMarks: marks - }) - const input = useWorktreeSidebarScrollSuppression(scrollRef) - useVirtualRowMeasurementSync({ - renderRows: rows, - virtualization, - scrollRef, - scrollOffsetRef, - scrollAnchorRef, - shouldSkipScrollAnchorRestore: input.shouldSkipScrollAnchorRestore - }) - return { ...virtualization, input } - }) - const mount = (index: number, height: number) => { - const element = document.createElement('div') - element.setAttribute('data-index', String(index)) - element.setAttribute('data-worktree-virtual-row', '') - element.setAttribute('data-worktree-virtual-row-key', `wt:${index}`) - Object.defineProperty(element, 'offsetHeight', { value: height }) - scroller.append(element) - act(() => view.result.current.virtualizer.measureElement(element)) - return element - } - return { scroller, view, mount, scrollAnchorRef } -} - -it('measures skipped mounted rows and new rows after late direct takeover without rewinding a stale offset', () => { - const { scroller, view, mount } = setup() - act(() => { - view.result.current.input.markRevealScroll(3000) - view.result.current.virtualizer.scrollToOffset(3000, { behavior: 'smooth' }) - }) - mount(0, 93) - vi.spyOn(window.performance, 'now').mockReturnValue(10000) - expect(view.result.current.input.shouldSkipScrollAnchorRestore()).toBe(false) - scroller.scrollTop = 50 - act(() => view.result.current.input.markDirectScrollInput()) - expect(scroller.scrollTop).toBe(50) - expect(view.result.current.virtualizer.measurementsCache[0].size).toBe(93) - mount(1, 115) - expect(view.result.current.virtualizer.measurementsCache[2].start).toBe(208) -}) - -it.each(['arrival', 'idle', 'replacement', 'no-op'] as const)( - 'releases measurement after %s instead of leaving the smooth target active', - (completion) => { - const { scroller, view, mount } = setup() - act(() => view.result.current.virtualizer.scrollToOffset(3000, { behavior: 'smooth' })) - mount(0, 93) - act(() => { - if (completion === 'replacement') { - view.result.current.virtualizer.scrollToIndex(0, { behavior: 'auto' }) - } else if (completion === 'no-op') { - view.result.current.virtualizer.scrollToOffset(0, { behavior: 'smooth' }) - } else { - scroller.scrollTop = completion === 'arrival' ? 3000 : 80 - scroller.dispatchEvent(new Event('scroll')) - if (completion === 'idle') { - vi.advanceTimersByTime(250) - } - } - }) - expect(view.result.current.virtualizer.measurementsCache[0].size).toBe(93) - mount(1, 115) - expect(view.result.current.virtualizer.measurementsCache[2].start).toBe(208) - view.unmount() - scroller.scrollTop = 37 - supersedeVirtualizedScrollAnchorRestore(scroller) - expect(scroller.scrollTop).toBe(37) - } -) - -it.each(['virtualizer', 'native'] as const)( - 'records later user movement back to a completed %s reveal destination', - (writer) => { - const { scroller, view, scrollAnchorRef } = setup() - const target = document.createElement('div') - target.getBoundingClientRect = () => new DOMRect(0, 350 - scroller.scrollTop, 300, 50) - scroller.append(target) - act(() => { - revealElementInScrollContainer( - scroller, - target, - 'auto', - undefined, - writer === 'virtualizer' - ? (top) => view.result.current.virtualizer.scrollToOffset(top, { behavior: 'auto' }) - : undefined - ) - scroller.dispatchEvent(new Event('scroll')) - }) - expect(scroller.scrollTop).toBe(100) - act(() => { - scroller.scrollTop = 20 - scroller.dispatchEvent(new Event('scroll')) - scroller.scrollTop = 100 - scroller.dispatchEvent(new Event('scroll')) - }) - expect(scrollAnchorRef.current?.offset).toBe(100) - } -) diff --git a/src/renderer/src/components/terminal-pane/emulation/issue-12112-agent-pane-startup-color-reply-leak.repro.test.ts b/src/renderer/src/components/terminal-pane/emulation/issue-12112-agent-pane-startup-color-reply-leak.repro.test.ts deleted file mode 100644 index 98f06b0855c..00000000000 --- a/src/renderer/src/components/terminal-pane/emulation/issue-12112-agent-pane-startup-color-reply-leak.repro.test.ts +++ /dev/null @@ -1,193 +0,0 @@ -import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest' -import { Terminal } from '@xterm/headless' -import { PtyStartupIngress } from '../../../../../shared/terminal/pty/ingress/pty-startup-ingress' -import { installTerminalCapabilityReplyHandlers } from './terminal-capability-replies' -import { createIpcPtyTransport } from '../pty-transport/ipc/pty-transport' -import type { PtyTransport } from '../pty-transport/pty-transport-types' - -// Guard agent startup color replies against cooked-mode echo leaks; plain tabs and agent ingress must deliver replies without rendering them. - -// opencode/OpenTUI's unconditional startup burst (BEL-terminated, not ST). -const OPENCODE_STARTUP_QUERY_BURST = '\x1b]10;?\x07\x1b]11;?\x07\x1b]4;0;?\x07' -// Orca's One Dark terminal theme — the values that appear in the leaked text. -const ORCA_TERMINAL_THEME = { foreground: '#ffffff', background: '#282c34' } -const OSC10_REPLY = '\x1b]10;rgb:ffff/ffff/ffff\x1b\\' -const OSC11_REPLY = '\x1b]11;rgb:2828/2c2c/3434\x1b\\' -const LEAKED_COLOR_REPLY_TEXT = /\d\d;rgb:[0-9a-f]{4}\// - -const PTY_ID = 'pty-12112' -let dispatchPtyData: (payload: { id: string; data: string }) => void = () => {} - -/** Model measured readline echo: unbound ESC ]/ST are swallowed while the reply payload renders as literal text. */ -function readlineEchoOf(reply: string): string { - return reply.replaceAll('\x1b]', '\x07').replaceAll('\x1b\\', '') -} - -type StartupTty = { - /** A writer (main ingress or renderer) pushes bytes at the PTY master. */ - writeToPty: (data: string) => void - /** Bytes the querying program actually read. */ - programInput: () => string - onPtyOutput: (sink: (data: string) => void) => void - emitStartupBurst: () => void -} - -/** Model cooked tty during startup callback and raw tty immediately after; both arms share the same echo timing. */ -function createStartupTty(): StartupTty { - let raw = false - let received = '' - let sink: (data: string) => void = () => {} - return { - writeToPty: (data) => { - if (raw) { - received += data - return - } - // ECHO copies master writes without consuming slave input; TCSANOW/TCSADRAIN preserve delivery, while TCSAFLUSH discards it. - received += data - sink(readlineEchoOf(data)) - }, - programInput: () => received, - onPtyOutput: (next) => { - sink = next - }, - emitStartupBurst: () => { - sink(OPENCODE_STARTUP_QUERY_BURST) - // Enter raw mode just after the synchronous startup writer callback. - queueMicrotask(() => { - raw = true - }) - } - } -} - -function stubPtyApi(tty: StartupTty): void { - vi.stubGlobal('window', { - api: { - pty: { - spawn: vi.fn(async () => ({ id: PTY_ID })), - write: vi.fn((_id: string, data: string) => tty.writeToPty(data)), - resize: vi.fn(), - kill: vi.fn(async () => {}), - claimViewport: vi.fn(), - onData: (cb: (payload: { id: string; data: string }) => void) => { - dispatchPtyData = cb - return () => {} - }, - onReplay: () => () => {}, - onExit: () => () => {} - } - } - }) -} - -type RendererPane = { - transport: PtyTransport - deliver: (data: string) => void - renderedText: () => string - dispose: () => void -} - -/** Real xterm + real capability-reply handlers + the real local IPC transport. */ -async function createRendererPane(): Promise { - const terminal = new Terminal({ cols: 80, rows: 24, allowProposedApi: true }) - terminal.options.theme = { ...ORCA_TERMINAL_THEME } - - const transport = createIpcPtyTransport({ worktreeId: 'wt-1', tabId: 'tab-1', leafId: 'pane:1' }) - await transport.connect({ - url: '', - cols: 80, - rows: 24, - callbacks: { onData: (data) => terminal.write(data) } - }) - - const handlers = installTerminalCapabilityReplyHandlers({ - // SAFETY: headless xterm supplies the parser and event members used by capability replies. - terminal: terminal as never, - parser: terminal.parser, - // Matches pty-connection.ts: replies go out via sendInputImmediate. - sendInput: (data) => transport.sendInputImmediate(data), - isReplaying: () => false - }) - - return { - transport, - deliver: (data) => dispatchPtyData({ id: PTY_ID, data }), - renderedText: () => { - const lines: string[] = [] - for (let row = 0; row < terminal.rows; row += 1) { - lines.push(terminal.buffer.active.getLine(row)?.translateToString(true) ?? '') - } - return lines.join('\n').trim() - }, - dispose: () => { - handlers.dispose() - terminal.dispose() - } - } -} - -async function settleUntil(condition: () => boolean, timeoutMs = 500): Promise { - const deadline = Date.now() + timeoutMs - while (!condition() && Date.now() < deadline) { - await vi.advanceTimersByTimeAsync(1) - } - expect(condition()).toBe(true) -} - -describe('#12112 opencode startup OSC 10/11 replies on the local path', () => { - beforeEach(() => { - vi.useFakeTimers() - }) - - afterEach(() => { - vi.useRealTimers() - vi.unstubAllGlobals() - }) - - it('plain terminal tab consumes the replies and renders nothing', async () => { - const tty = createStartupTty() - stubPtyApi(tty) - const pane = await createRendererPane() - // Plain tabs have no main startup ingress; xterm alone answers their probes. - tty.onPtyOutput(pane.deliver) - - try { - tty.emitStartupBurst() - await settleUntil(() => tty.programInput().includes(OSC11_REPLY)) - - expect(pane.renderedText()).not.toMatch(LEAKED_COLOR_REPLY_TEXT) - expect(tty.programInput()).toContain(OSC10_REPLY) - expect(tty.programInput()).toContain(OSC11_REPLY) - } finally { - pane.dispose() - } - }) - - it('agent pane consumes the replies and renders nothing', async () => { - const tty = createStartupTty() - stubPtyApi(tty) - const pane = await createRendererPane() - - // TUI agent launches arm main startup ingress. - const ingress = new PtyStartupIngress({ - intent: { colors: ORCA_TERMINAL_THEME, deadlineMs: 5_000 }, - ownerBackend: 'posix-pty', - write: (data) => tty.writeToPty(data), - onEmission: (emission) => pane.deliver(emission.data) - }) - tty.onPtyOutput((data) => ingress.accept(data)) - - try { - tty.emitStartupBurst() - await settleUntil(() => tty.programInput().includes(OSC11_REPLY)) - - expect(pane.renderedText()).not.toMatch(LEAKED_COLOR_REPLY_TEXT) - expect(tty.programInput()).toContain(OSC10_REPLY) - expect(tty.programInput()).toContain(OSC11_REPLY) - } finally { - ingress.drainAndClose() - pane.dispose() - } - }) -}) diff --git a/src/renderer/src/components/terminal-pane/parking/output-watchers/terminal-parked-tab-watchers.test.ts b/src/renderer/src/components/terminal-pane/parking/output-watchers/terminal-parked-tab-watchers.test.ts deleted file mode 100644 index a53c5e75b0f..00000000000 --- a/src/renderer/src/components/terminal-pane/parking/output-watchers/terminal-parked-tab-watchers.test.ts +++ /dev/null @@ -1,184 +0,0 @@ -import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest' -import type { ParkedTerminalByteWatcherOptions } from './parked-terminal-byte-watcher' - -const WORKTREE_ID = 'repo::/worktree' -const TAB_ID = 'tab-1' -const PTY_ID = `${WORKTREE_ID}@@session-1` -const SECOND_PTY_ID = `${WORKTREE_ID}@@session-2` -const LEAF_ID = '11111111-1111-4111-8111-111111111111' -const SECOND_LEAF_ID = '22222222-2222-4222-8222-222222222222' - -type StartedWatcher = { - options: ParkedTerminalByteWatcherOptions - dispose: ReturnType -} - -const startedWatchers: StartedWatcher[] = [] -const startParkedTerminalByteWatcher = vi.fn((options: ParkedTerminalByteWatcherOptions) => { - const dispose = vi.fn() - startedWatchers.push({ options, dispose }) - return dispose -}) - -vi.mock('./parked-terminal-byte-watcher', () => ({ - startParkedTerminalByteWatcher: (options: ParkedTerminalByteWatcherOptions) => - startParkedTerminalByteWatcher(options) -})) - -type ExitSubscription = { - ptyId: string - callback: (code: number, context: { hadPrimary: boolean }) => void - unsubscribe: ReturnType -} - -const exitSubscriptions: ExitSubscription[] = [] -const subscribeToPtyExit = vi.fn( - (ptyId: string, callback: (code: number, context: { hadPrimary: boolean }) => void) => { - const unsubscribe = vi.fn() - exitSubscriptions.push({ ptyId, callback, unsubscribe }) - return unsubscribe - } -) - -vi.mock('../../pty-transport/delivery/pty-dispatcher', () => ({ - subscribeToPtyExit: (ptyId: string, callback: (code: number) => void) => - subscribeToPtyExit(ptyId, callback) -})) - -const consumePreHandlerPtyState = vi.fn() -vi.mock('../../pty-transport/delivery/pty-pre-handler-buffer', () => ({ - discardPreHandlerPtyState: (ptyId: string) => consumePreHandlerPtyState(ptyId), - hasPreHandlerPtyExit: (ptyId: string) => unownedExitPtyIds.has(ptyId) -})) - -/** PTYs whose exit was delivered with no owning handler — the park handoff gap. */ -const unownedExitPtyIds = new Set() - -type CloseTerminalTabOptions = { - captureRecentlyClosed?: boolean - hostCloseReason?: string - lifecyclePtyId?: string - onClosed?: () => void - onCancel?: () => void -} -const closeTerminalTab = vi.fn() -vi.mock('../../../terminal/terminal-tab-actions', () => ({ - closeTerminalTab: (tabId: string, options?: CloseTerminalTabOptions) => - closeTerminalTab(tabId, options) -})) - -type MockStoreState = { - tabsByWorktree: Record< - string, - { id: string; launchAgent?: 'claude' | 'codex'; ptyId: string | null }[] - > - terminalLayoutsByTabId: Record< - string, - { - root: unknown - activeLeafId: string | null - expandedLeafId: string | null - ptyIdsByLeafId?: Record - } - > - runtimePaneTitlesByTabId: Record> - sleepingAgentSessionsByPaneKey: Record - settings: { terminalSshViewParking?: boolean } | null - runtimeStatusByEnvironmentId: Map< - string, - { status: { capabilities?: string[] } | null; checkedAt: number } - > - clearTabLaunchAgent: ReturnType - clearRuntimePaneTitle: ReturnType - setRuntimePaneTitle: ReturnType - setTabLayout: ReturnType - updateTabTitle: ReturnType - markUnverifiedPtyLoss: ReturnType - isPtyShutdownPending: ReturnType - suppressedPtyExitIds: Record -} - -let mockStoreState: MockStoreState - -vi.mock('@/store/index', () => ({ - useAppStore: { getState: () => mockStoreState } -})) - -import { - clearTerminalProviderSnapshotCapabilities, - synchronizeTerminalProviderSnapshotCapabilities -} from '../../../terminal/terminal-provider-snapshot-capability' -import { probeTerminalProviderGoneSessions } from '../../../terminal/terminal-provider-gone-sessions' -import './terminal-parked-tab-watchers' -import { canWatcherCoverParkedTerminalTab } from './parked-terminal-tab-coverage' -import { - captureParkedTerminalPaneCandidates, - pruneParkedTerminalWatchers -} from './terminal-parked-watcher-registry' - -const ptyWrite = vi.fn() -const originalWindow = (globalThis as { window?: unknown }).window - -function capturePanes( - panes: { ptyId: string | null; paneId: number; leafId: string; drivesTabTitle: boolean }[], - args?: { tabId?: string; worktreeId?: string } -): void { - captureParkedTerminalPaneCandidates(args?.tabId ?? TAB_ID, args?.worktreeId ?? WORKTREE_ID, panes) -} - -describe('terminal-parked-tab-watchers', () => { - beforeEach(async () => { - mockStoreState = { - tabsByWorktree: {}, - terminalLayoutsByTabId: {}, - runtimePaneTitlesByTabId: {}, - sleepingAgentSessionsByPaneKey: {}, - settings: null, - runtimeStatusByEnvironmentId: new Map(), - clearTabLaunchAgent: vi.fn(), - clearRuntimePaneTitle: vi.fn(), - setRuntimePaneTitle: vi.fn(), - setTabLayout: vi.fn(), - updateTabTitle: vi.fn(), - markUnverifiedPtyLoss: vi.fn(), - isPtyShutdownPending: vi.fn(() => false), - suppressedPtyExitIds: {} - } - ;(globalThis as { window?: unknown }).window = { api: { pty: { write: ptyWrite } } } - clearTerminalProviderSnapshotCapabilities() - await synchronizeTerminalProviderSnapshotCapabilities([PTY_ID, SECOND_PTY_ID], async (ids) => - ids.map((id) => ({ id, authoritative: true })) - ) - }) - - afterEach(() => { - unownedExitPtyIds.clear() - // Prune persistent module registries so each suite starts without parked watchers. - pruneParkedTerminalWatchers(new Set()) - startedWatchers.length = 0 - exitSubscriptions.length = 0 - vi.clearAllMocks() - clearTerminalProviderSnapshotCapabilities() - ;(globalThis as { window?: unknown }).window = originalWindow - }) - - it('keeps a split tab mounted when only some pane sessions are gone', async () => { - await probeTerminalProviderGoneSessions([PTY_ID], async () => [PTY_ID]) - capturePanes([ - { ptyId: PTY_ID, paneId: 1, leafId: LEAF_ID, drivesTabTitle: true }, - { ptyId: SECOND_PTY_ID, paneId: 2, leafId: SECOND_LEAF_ID, drivesTabTitle: false } - ]) - - expect(canWatcherCoverParkedTerminalTab(WORKTREE_ID, { id: TAB_ID, ptyId: PTY_ID })).toBe(false) - }) - - it('keeps a gone agent tab mounted so its resume path is unchanged', async () => { - await probeTerminalProviderGoneSessions([PTY_ID], async () => [PTY_ID]) - mockStoreState.tabsByWorktree[WORKTREE_ID] = [ - { id: TAB_ID, ptyId: PTY_ID, launchAgent: 'claude' } - ] - capturePanes([{ ptyId: PTY_ID, paneId: 1, leafId: LEAF_ID, drivesTabTitle: true }]) - - expect(canWatcherCoverParkedTerminalTab(WORKTREE_ID, { id: TAB_ID, ptyId: PTY_ID })).toBe(false) - }) -}) diff --git a/src/renderer/src/components/terminal-pane/pty-connection/input/pty-connection-command-finished-interrupt-arbitration.spec.ts b/src/renderer/src/components/terminal-pane/pty-connection/input/pty-connection-command-finished-interrupt-arbitration.spec.ts deleted file mode 100644 index c99dfa997c5..00000000000 --- a/src/renderer/src/components/terminal-pane/pty-connection/input/pty-connection-command-finished-interrupt-arbitration.spec.ts +++ /dev/null @@ -1,180 +0,0 @@ -import { acceptedAgentStatuses } from '@/store/slices/agent-status/accepted-agent-statuses' -import { bindPtyConnectionTestMocks } from '../test-fixtures/pty-connection-mocks.spec' -import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest' -import { makePaneKey } from '../../../../../../shared/workspace-layout/stable-pane-id' -import { flushAsyncTicks, createDeferred } from '../test-fixtures/pty-connection-test-async' -import { createKeyboardEventTarget, keyEvent } from '../test-fixtures/pty-connection-test-dom' -import { - LEAF_1, - createMockTransport, - createPane, - createManager, - type ConnectCallbacks, - type MockTransport -} from '../test-fixtures/pty-connection-test-pane-fixtures' -import type { StoreState } from '../test-fixtures/pty-connection-test-store-state' -import { - buildPaneConnectionDeps, - type PtyConnectionAgentTitleMocks, - bindPaneAgentTitleMocks -} from '../test-fixtures/pty-connection-test-deps' -import { createInitialStoreState } from '../test-fixtures/pty-connection-test-store-fixtures' -import { - installTerminalTestGlobals, - restoreTerminalTestGlobals -} from '../test-fixtures/pty-connection-test-environment' -import { mockPanePtyArgs } from '../test-fixtures/pty-connection-test-connect-mock-pane' - -export function registerPtyConnectionCommandFinishedInterruptArbitrationTests(): void { - let mockStoreState: StoreState - let transportFactoryQueue: MockTransport[] = [] - let createdTransportOptions: Record[] = [] - let storeSubscribers: ((state: StoreState) => void)[] = [] - - function createDeps(overrides: Record = {}) { - return buildPaneConnectionDeps(() => mockStoreState, overrides) - } - describe('connectPanePty', () => { - beforeEach(async () => { - vi.clearAllMocks() - transportFactoryQueue = [] - createdTransportOptions = [] - storeSubscribers = [] - mockStoreState = createInitialStoreState(() => mockStoreState) - bindPtyConnectionTestMocks({ - getState: () => mockStoreState, - getTransportQueue: () => transportFactoryQueue, - getTransportOptions: () => createdTransportOptions, - getStoreSubscribers: () => storeSubscribers, - setStoreSubscribers: (subscribers) => { - storeSubscribers = subscribers - } - }) - await installTerminalTestGlobals() - }) - - afterEach(async () => { - await restoreTerminalTestGlobals() - }) - - it.each(['gemini', 'codex'] as const)( - 'pins %s interrupt policy before acknowledged input and command exit cleanup', - async (agentType) => { - const { connectPanePty } = await import('../connect-pane-pty') - const agentTitleMocks14 = await vi.importMock( - '@/lib/agent-status/aggregation/worktree-agent-status' - ) - - const capturedDataCallback: { current: ((data: string) => void) | null } = { current: null } - const transport = createMockTransport() - const writeAccepted = createDeferred() - transport.sendInputAccepted = vi.fn(() => writeAccepted.promise) - transport.connect.mockImplementation( - async ({ callbacks }: { callbacks: ConnectCallbacks }) => { - capturedDataCallback.current = callbacks.onData ?? null - return { id: 'tab-pty' } - } - ) - transport.attach.mockImplementation(({ callbacks }: { callbacks: ConnectCallbacks }) => { - capturedDataCallback.current = callbacks.onData ?? null - }) - transportFactoryQueue.push(transport) - vi.useFakeTimers() - vi.setSystemTime(1_100) - const paneKey = makePaneKey('tab-1', LEAF_1) - mockStoreState = { - ...mockStoreState, - agentStatusByPaneKey: acceptedAgentStatuses( - Object.entries({ - [paneKey]: { - paneKey, - state: 'working', - prompt: 'stop quickly', - updatedAt: 1_000, - stateStartedAt: 900, - agentType, - terminalTitle: agentType, - stateHistory: [] - } - }) - ) - } - vi.mocked(window.api.agentStatus.inferInterrupt).mockImplementation(async () => { - mockStoreState.agentStatusByPaneKey = mockStoreState.agentStatusByPaneKey.replace([ - [ - paneKey, - { - paneKey, - state: 'done', - prompt: 'stop quickly', - updatedAt: 1_100, - stateStartedAt: 1_100, - agentType, - terminalTitle: agentType, - interrupted: true, - stateHistory: [ - { - state: 'working', - prompt: 'stop quickly', - startedAt: 900 - } - ] - } - ] - ]) - return true - }) - const terminalTarget = createKeyboardEventTarget() - const pane = createPane(1) - ;(pane.terminal as { element?: unknown }).element = terminalTarget.target - let onDataHandler: ((data: string) => void) | null = null - pane.terminal.onData = vi.fn(((handler: (data: string) => void) => { - onDataHandler = handler - return { dispose: vi.fn() } - }) as typeof pane.terminal.onData) - - connectPanePty( - ...mockPanePtyArgs( - pane, - createManager(1), - bindPaneAgentTitleMocks(createDeps(), agentTitleMocks14) - ) - ) - vi.advanceTimersByTime(1_000) - await flushAsyncTicks() - expect(capturedDataCallback.current).not.toBeNull() - if (!onDataHandler) { - throw new Error('expected onData handler to be registered') - } - terminalTarget.dispatch(keyEvent({ key: 'Escape' })) - ;(onDataHandler as unknown as (data: string) => void)('\x1b') - - capturedDataCallback.current?.('\x1b]133;D;130\x07thebr ~/repo $ ') - expect(window.api.agentStatus.inferInterrupt).not.toHaveBeenCalled() - expect(mockStoreState.dropAgentStatus).not.toHaveBeenCalled() - - mockStoreState.agentStatusByPaneKey = mockStoreState.agentStatusByPaneKey.replace([ - [paneKey, null] - ]) - writeAccepted.resolve(true) - await flushAsyncTicks() - - if (agentType === 'codex') { - expect(window.api.agentStatus.inferInterrupt).not.toHaveBeenCalled() - expect(mockStoreState.dropAgentStatus).not.toHaveBeenCalled() - expect(mockStoreState.clearAgentLaunchConfig).toHaveBeenCalledWith(paneKey) - } else { - expect(window.api.agentStatus.inferInterrupt).toHaveBeenCalledWith({ - paneKey, - baselineUpdatedAt: 1_000, - baselineStateStartedAt: 900, - baselinePrompt: 'stop quickly', - baselineAgentType: agentType, - intent: 'plain-escape' - }) - expect(mockStoreState.dropAgentStatus).toHaveBeenCalledWith(paneKey) - } - } - ) - }) -} diff --git a/src/renderer/src/components/terminal-pane/pty-connection/output-restore/pty-connection-hidden-restore-unhide-retired-task.test.ts b/src/renderer/src/components/terminal-pane/pty-connection/output-restore/pty-connection-hidden-restore-unhide-retired-task.test.ts deleted file mode 100644 index 78e5ca01c9d..00000000000 --- a/src/renderer/src/components/terminal-pane/pty-connection/output-restore/pty-connection-hidden-restore-unhide-retired-task.test.ts +++ /dev/null @@ -1,143 +0,0 @@ -import '../test-fixtures/pty-connection-mocks.spec' -import { describe, expect, it, vi } from 'vitest' -import { flushAsyncTicks, createDeferred } from '../test-fixtures/pty-connection-test-async' -import { - announceMainDrop, - connectVisiblePane, - installHiddenRestoreFloodSuiteHooks, - modelSnapshot, - PTY_ID, - type MainSnapshot -} from '../test-fixtures/pty-connection-test-hidden-restore-flood' - -// Retired restore tasks cannot paint or consume the unhide recovery owed by their successor. - -describe('hidden-output restore unhide with a retired task (STA-4869)', () => { - installHiddenRestoreFloodSuiteHooks() - - it('ignores a timed-out task without consuming the next restore request', async () => { - const drive = await connectVisiblePane() - vi.useFakeTimers() - const getMainBufferSnapshot = vi.mocked(window.api.pty.getMainBufferSnapshot) - const first = createDeferred() - const second = createDeferred() - getMainBufferSnapshot.mockReturnValueOnce(first.promise).mockReturnValueOnce(second.promise) - try { - await announceMainDrop(64, 1) - await announceMainDrop(64, 1, 'unhide') - const waitingLive = 'LIVE_HELD_FOR_TIMEOUT\r\n' - drive.deliver(waitingLive, 64 + waitingLive.length) - await vi.advanceTimersByTimeAsync(800) - await flushAsyncTicks(30) - expect(drive.writtenChunks().join('')).toContain(waitingLive) - - await announceMainDrop(256, 2) - await vi.advanceTimersByTimeAsync(2_100) - await flushAsyncTicks(30) - expect(getMainBufferSnapshot).toHaveBeenCalledTimes(2) - first.resolve(modelSnapshot('STALE_TIMED_OUT_CAPTURE', 128)) - await flushAsyncTicks(30) - second.resolve(modelSnapshot('RECOVERED_AFTER_TIMEOUT', 512)) - await flushAsyncTicks(30) - await vi.advanceTimersByTimeAsync(2_100) - await flushAsyncTicks(30) - expect(getMainBufferSnapshot).toHaveBeenCalledTimes(2) - expect(drive.writtenChunks().join('')).not.toContain('STALE_TIMED_OUT_CAPTURE') - expect(drive.writtenChunks().join('')).toContain('RECOVERED_AFTER_TIMEOUT') - expect(window.api.pty.ackHiddenOutputRestoreApplied).toHaveBeenCalledWith(PTY_ID, 2) - } finally { - drive.disposable.dispose() - } - }) - - it('recovers a successor unhide with one quiet repaint, not a retired-task requirement too', async () => { - const drive = await connectVisiblePane() - vi.useFakeTimers() - const getMainBufferSnapshot = vi.mocked(window.api.pty.getMainBufferSnapshot) - const oldPtySnapshot = createDeferred() - const newPtySnapshot = createDeferred() - getMainBufferSnapshot - .mockReturnValueOnce(oldPtySnapshot.promise) - .mockReturnValueOnce(newPtySnapshot.promise) - .mockResolvedValue(modelSnapshot('SECOND_SUCCESSOR_REPLAY', 1024)) - try { - await announceMainDrop(64, 1) - await announceMainDrop(64, 1, 'unhide') - drive.transport.getPtyId.mockReturnValue('successor-pty') - drive.setVisible(false) - drive.deliver('NEW_PTY_OUTPUT\r\n', 32) - drive.setVisible(true) - await announceMainDrop(32, 2, 'hidden-drop', 'successor-pty') - await announceMainDrop(512, 2, 'unhide', 'successor-pty') - - oldPtySnapshot.resolve(modelSnapshot('RETIRED_PTY_CAPTURE', 2048)) - await flushAsyncTicks(30) - await vi.advanceTimersByTimeAsync(2_100) - await flushAsyncTicks(30) - expect(getMainBufferSnapshot).toHaveBeenCalledTimes(2) - // Seq below the marker: only a recorded unhide requirement would force a second replay. - newPtySnapshot.resolve(modelSnapshot('SUCCESSOR_QUIET_REPAINT', 128)) - await flushAsyncTicks(30) - await vi.advanceTimersByTimeAsync(2_100) - await flushAsyncTicks(30) - expect(getMainBufferSnapshot).toHaveBeenCalledTimes(2) - const written = drive.writtenChunks().join('') - expect(written).not.toContain('RETIRED_PTY_CAPTURE') - expect(written).toContain('SUCCESSOR_QUIET_REPAINT') - expect(written).not.toContain('SECOND_SUCCESSOR_REPLAY') - expect(window.api.pty.ackHiddenOutputRestoreApplied).not.toHaveBeenCalledWith(PTY_ID, 1) - expect(window.api.pty.ackHiddenOutputRestoreApplied).toHaveBeenCalledWith('successor-pty', 2) - } finally { - drive.disposable.dispose() - } - }) - - it('recovers an unhide-only successor while a retired PTY snapshot is pending', async () => { - const drive = await connectVisiblePane() - vi.useFakeTimers() - const getMainBufferSnapshot = vi.mocked(window.api.pty.getMainBufferSnapshot) - const oldPtySnapshot = createDeferred() - getMainBufferSnapshot - .mockReturnValueOnce(oldPtySnapshot.promise) - .mockResolvedValue(modelSnapshot('SUCCESSOR_UNHIDE_RECOVERED', 1024)) - try { - await announceMainDrop(64, 1) - drive.transport.getPtyId.mockReturnValue('successor-pty') - drive.setVisible(false) - drive.deliver('NEW_PTY_OUTPUT\r\n', 32) - drive.setVisible(true) - await announceMainDrop(512, 2, 'unhide', 'successor-pty') - - oldPtySnapshot.resolve(modelSnapshot('RETIRED_PTY_CAPTURE', 2048)) - await flushAsyncTicks(30) - await vi.advanceTimersByTimeAsync(2_100) - await flushAsyncTicks(30) - expect(getMainBufferSnapshot).toHaveBeenCalledTimes(2) - expect(drive.writtenChunks().join('')).not.toContain('RETIRED_PTY_CAPTURE') - expect(drive.writtenChunks().join('')).toContain('SUCCESSOR_UNHIDE_RECOVERED') - expect(window.api.pty.ackHiddenOutputRestoreApplied).not.toHaveBeenCalledWith(PTY_ID, 1) - expect(window.api.pty.ackHiddenOutputRestoreApplied).toHaveBeenCalledWith('successor-pty', 2) - } finally { - drive.disposable.dispose() - } - }) - - it('cannot replay or acknowledge an unhide after its pane is disposed', async () => { - const drive = await connectVisiblePane() - vi.useFakeTimers() - const getMainBufferSnapshot = vi.mocked(window.api.pty.getMainBufferSnapshot) - const first = createDeferred() - getMainBufferSnapshot.mockReturnValueOnce(first.promise) - await announceMainDrop(64, 1) - await announceMainDrop(64, 1, 'unhide') - drive.disposable.dispose() - const writesBeforeDisposal = drive.writtenChunks().slice() - first.resolve(modelSnapshot('DISPOSED_PANE_CAPTURE', 128)) - await flushAsyncTicks(30) - await vi.advanceTimersByTimeAsync(2_100) - await flushAsyncTicks(30) - expect(getMainBufferSnapshot).toHaveBeenCalledTimes(1) - expect(drive.writtenChunks()).toEqual(writesBeforeDisposal) - expect(window.api.pty.ackHiddenOutputRestoreApplied).not.toHaveBeenCalled() - }) -}) diff --git a/src/renderer/src/components/terminal-pane/pty-connection/tests/pty-connection-completion-and-notification.test.ts b/src/renderer/src/components/terminal-pane/pty-connection/tests/pty-connection-completion-and-notification.test.ts index 7fde206c0aa..2cc6131c435 100644 --- a/src/renderer/src/components/terminal-pane/pty-connection/tests/pty-connection-completion-and-notification.test.ts +++ b/src/renderer/src/components/terminal-pane/pty-connection/tests/pty-connection-completion-and-notification.test.ts @@ -1,13 +1,11 @@ import { describe } from 'vitest' import { registerPtyConnectionCommandFinishedCleanupTests } from '../agent-identity/pty-connection-command-finished-cleanup.spec' -import { registerPtyConnectionCommandFinishedInterruptArbitrationTests } from '../input/pty-connection-command-finished-interrupt-arbitration.spec' import { registerPtyConnectionHookCompletionSideEffectsTests } from '../notifications/pty-connection-hook-completion-side-effects.spec' import { registerPtyConnectionMainSideEffectAuthorityTests } from '../emulation/pty-connection-main-side-effect-authority.spec' import { registerPtyConnectionTaskCompleteDispatchTests } from '../notifications/pty-connection-task-complete-dispatch.spec' describe('pty-connection-command-finished-cleanup', () => { registerPtyConnectionCommandFinishedCleanupTests() - registerPtyConnectionCommandFinishedInterruptArbitrationTests() }) describe( 'pty-connection-hook-completion-side-effects', diff --git a/src/renderer/src/components/workspace-cleanup/removal/settlement/workspace-cleanup-background-removal-late-settlement.test.ts b/src/renderer/src/components/workspace-cleanup/removal/settlement/workspace-cleanup-background-removal-late-settlement.test.ts deleted file mode 100644 index ac94dda238a..00000000000 --- a/src/renderer/src/components/workspace-cleanup/removal/settlement/workspace-cleanup-background-removal-late-settlement.test.ts +++ /dev/null @@ -1,212 +0,0 @@ -import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest' -import { toast } from 'sonner' -import type { WorkspaceCleanupRemoveResult } from '@/store/slices/workspace-cleanup/workspace-cleanup-removal' -import { startWorkspaceCleanupBackgroundRemoval } from './workspace-cleanup-background-removal' -import { makeCandidate } from '../../query/workspace-cleanup-candidate-state.test-fixture' - -vi.mock('sonner', () => ({ - toast: { - error: vi.fn(), - info: vi.fn(), - success: vi.fn() - } -})) - -async function settleBackgroundRemoval(): Promise { - for (let index = 0; index < 10; index += 1) { - await Promise.resolve() - } -} - -describe('workspace cleanup late settlement reconciliation', () => { - beforeEach(() => { - vi.clearAllMocks() - vi.useFakeTimers() - }) - - afterEach(() => { - vi.useRealTimers() - }) - - it('uses a post-grace child success that arrives before its parent is considered', async () => { - const parent = makeCandidate({ - worktreeId: 'repo-1::/repo/p', - displayName: 'parent', - branch: 'parent', - path: '/repo/p' - }) - const child = makeCandidate({ - worktreeId: 'repo-1::/repo/p/child-long', - displayName: 'child', - branch: 'child', - path: '/repo/p/child-long' - }) - const unrelated = makeCandidate({ - worktreeId: 'repo-1::/repo/other', - displayName: 'other', - branch: 'other', - path: '/repo/other' - }) - let resolveChild: (result: WorkspaceCleanupRemoveResult) => void = () => {} - let resolveUnrelated: (result: WorkspaceCleanupRemoveResult) => void = () => {} - const removeCandidates = vi - .fn() - .mockImplementationOnce( - () => - new Promise((resolve) => { - resolveChild = resolve - }) - ) - .mockImplementationOnce( - () => - new Promise((resolve) => { - resolveUnrelated = resolve - }) - ) - .mockResolvedValueOnce({ - removedIds: [parent.worktreeId], - removedIdentities: [parent.worktreeId], - failures: [] - }) - const onResult = vi.fn() - - startWorkspaceCleanupBackgroundRemoval({ - candidates: [parent, unrelated, child], - removeCandidates, - onProgress: vi.fn(), - onResult, - removalTimeoutMs: 5, - removalSettlementGraceMs: 5 - }) - - await vi.advanceTimersByTimeAsync(10) - expect(removeCandidates).toHaveBeenCalledTimes(2) - resolveChild({ - removedIds: [child.worktreeId], - removedIdentities: [child.worktreeId], - failures: [] - }) - await settleBackgroundRemoval() - resolveUnrelated({ - removedIds: [unrelated.worktreeId], - removedIdentities: [unrelated.worktreeId], - failures: [] - }) - await settleBackgroundRemoval() - - expect(removeCandidates).toHaveBeenNthCalledWith(3, [parent.worktreeId], { - approvedCandidates: [parent] - }) - expect(onResult).toHaveBeenCalledWith({ - removedIds: [child.worktreeId, unrelated.worktreeId, parent.worktreeId], - removedIdentities: [child.worktreeId, unrelated.worktreeId, parent.worktreeId], - failures: [] - }) - expect(toast.error).not.toHaveBeenCalled() - }) - - it('reports later child settlements while a post-batch ancestor retry is stalled', async () => { - const firstParent = makeCandidate({ - worktreeId: 'repo-1::/repo/a', - displayName: 'first parent', - branch: 'first-parent', - path: '/repo/a' - }) - const firstChild = makeCandidate({ - worktreeId: 'repo-1::/repo/a/child-long', - displayName: 'first child', - branch: 'first-child', - path: '/repo/a/child-long' - }) - const secondParent = makeCandidate({ - worktreeId: 'repo-1::/repo/bb', - displayName: 'second parent', - branch: 'second-parent', - path: '/repo/bb' - }) - const secondChild = makeCandidate({ - worktreeId: 'repo-1::/repo/bb/c', - displayName: 'second child', - branch: 'second-child', - path: '/repo/bb/c' - }) - let resolveFirstChild: (result: WorkspaceCleanupRemoveResult) => void = () => {} - let resolveSecondChild: (result: WorkspaceCleanupRemoveResult) => void = () => {} - const removeCandidates = vi - .fn() - .mockImplementationOnce( - () => - new Promise((resolve) => { - resolveFirstChild = resolve - }) - ) - .mockImplementationOnce( - () => - new Promise((resolve) => { - resolveSecondChild = resolve - }) - ) - .mockImplementationOnce(() => new Promise(() => {})) - .mockResolvedValueOnce({ - removedIds: [secondParent.worktreeId], - removedIdentities: [secondParent.worktreeId], - failures: [] - }) - const onLateResult = vi.fn() - - startWorkspaceCleanupBackgroundRemoval({ - candidates: [firstParent, firstChild, secondParent, secondChild], - removeCandidates, - onProgress: vi.fn(), - onResult: vi.fn(), - onLateResult, - removalTimeoutMs: 5, - removalSettlementGraceMs: 5 - }) - - await vi.advanceTimersByTimeAsync(20) - await settleBackgroundRemoval() - resolveFirstChild({ - removedIds: [firstChild.worktreeId], - removedIdentities: [firstChild.worktreeId], - failures: [] - }) - await settleBackgroundRemoval() - - expect(removeCandidates).toHaveBeenNthCalledWith(3, [firstParent.worktreeId], { - approvedCandidates: [firstParent] - }) - expect(onLateResult).toHaveBeenNthCalledWith(1, { - removedIds: [firstChild.worktreeId], - removedIdentities: [firstChild.worktreeId], - failures: [] - }) - - resolveSecondChild({ - removedIds: [secondChild.worktreeId], - removedIdentities: [secondChild.worktreeId], - failures: [] - }) - await settleBackgroundRemoval() - - expect(onLateResult).toHaveBeenNthCalledWith(2, { - removedIds: [secondChild.worktreeId], - removedIdentities: [secondChild.worktreeId], - failures: [] - }) - expect(removeCandidates).toHaveBeenCalledTimes(3) - - await vi.advanceTimersByTimeAsync(10) - await settleBackgroundRemoval() - - expect(removeCandidates).toHaveBeenNthCalledWith(4, [secondParent.worktreeId], { - approvedCandidates: [secondParent] - }) - expect(onLateResult).toHaveBeenCalledWith({ - removedIds: [secondParent.worktreeId], - removedIdentities: [secondParent.worktreeId], - failures: [] - }) - expect(toast.info).toHaveBeenCalledWith('Still removing workspaces: 1') - }) -}) diff --git a/src/renderer/src/i18n/I18nProvider.test.tsx b/src/renderer/src/i18n/I18nProvider.test.tsx deleted file mode 100644 index 95a7525f5fb..00000000000 --- a/src/renderer/src/i18n/I18nProvider.test.tsx +++ /dev/null @@ -1,178 +0,0 @@ -// @vitest-environment happy-dom - -import { act, createElement } from 'react' -import { createRoot, type Root } from 'react-dom/client' -import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest' - -import { getDefaultSettings } from '../../../shared/constants' - -import { - getBrowserLanguageDetection, - setRendererLanguageDetection -} from '../../../shared/i18n/ui-locale' -import { useAppStore } from '@/store' -import { i18n } from './i18n' -import * as rendererI18n from './i18n' -import { useLanguageReadiness } from './language-readiness' -import * as languageReadiness from './language-readiness' -import { usePluginLanguagePackStore } from '../store/plugins/localization/plugin-language-packs' -import { I18nProvider } from './I18nProvider' - -// Wait for async settings before selecting the OS locale, or an in-flight load can override the persisted preference. - -const initialAppState = useAppStore.getInitialState() -const roots: Root[] = [] - -async function renderProvider(): Promise { - const container = document.createElement('div') - document.body.appendChild(container) - const root = createRoot(container) - roots.push(root) - await act(async () => { - root.render(createElement(I18nProvider, null, null)) - }) -} - -beforeEach(() => { - useLanguageReadiness.setState(useLanguageReadiness.getInitialState(), true) - vi.spyOn(languageReadiness, 'initializeLanguageDetection').mockImplementation(async () => { - const detection = getBrowserLanguageDetection() - setRendererLanguageDetection(detection) - useLanguageReadiness.setState({ detection }) - return detection - }) - useAppStore.setState(initialAppState, true) -}) - -afterEach(async () => { - for (const root of roots) { - await act(async () => { - root.unmount() - }) - } - roots.length = 0 - useAppStore.setState(initialAppState, true) - - vi.restoreAllMocks() -}) - -describe('I18nProvider startup language', () => { - it.each(['loaded', 'failed'] as const)( - 'starts an explicit catalog before detection finishes and waits for detection when %s', - async (outcome) => { - const detection = getBrowserLanguageDetection() - let finishDetection: () => void = () => {} - vi.spyOn(languageReadiness, 'initializeLanguageDetection').mockImplementation( - () => - new Promise((resolve) => { - finishDetection = () => resolve(detection) - }) - ) - const load = vi.spyOn(rendererI18n, 'loadRendererUiLanguage') - if (outcome === 'loaded') { - load.mockResolvedValue('fr') - } else { - load.mockRejectedValue(new Error('Catalog offline')) - } - const changeLanguage = vi.spyOn(i18n, 'changeLanguage') - useAppStore.setState({ settings: { ...getDefaultSettings('/tmp'), uiLanguage: 'fr' } }) - - await renderProvider() - - expect(load).toHaveBeenCalledWith('fr') - expect(changeLanguage).not.toHaveBeenCalled() - expect(useLanguageReadiness.getState()).toMatchObject({ ready: false, loading: true }) - - await act(async () => finishDetection()) - - expect(changeLanguage).toHaveBeenCalledWith(outcome === 'loaded' ? 'fr' : 'en') - await vi.waitFor(() => - expect(useLanguageReadiness.getState()).toMatchObject({ - ready: true, - loading: false, - error: outcome === 'failed' - }) - ) - } - ) - - it('waits for detection before resolving the system language catalog', async () => { - const detection = getBrowserLanguageDetection() - let finishDetection: () => void = () => {} - vi.spyOn(languageReadiness, 'initializeLanguageDetection').mockImplementation( - () => - new Promise((resolve) => { - finishDetection = () => resolve(detection) - }) - ) - const load = vi.spyOn(rendererI18n, 'loadRendererUiLanguage').mockResolvedValue('en') - useAppStore.setState({ settings: { ...getDefaultSettings('/tmp'), uiLanguage: 'system' } }) - - await renderProvider() - - expect(load).not.toHaveBeenCalled() - - await act(async () => finishDetection()) - - expect(load).toHaveBeenCalledWith('system') - expect(useLanguageReadiness.getState().ready).toBe(true) - }) -}) - -it('does not apply a delayed catalog after a newer saved preference', async () => { - let finishSpanish: (locale: string) => void = () => {} - const load = vi - .spyOn(rendererI18n, 'loadRendererUiLanguage') - .mockImplementation(async (language) => { - if (language === 'es') { - return new Promise((resolve) => { - finishSpanish = resolve - }) - } - return 'en' - }) - const changeLanguage = vi.spyOn(i18n, 'changeLanguage') - await renderProvider() - await act(async () => { - useAppStore.setState({ settings: { ...getDefaultSettings('/tmp'), uiLanguage: 'es' } }) - }) - await vi.waitFor(() => expect(load).toHaveBeenCalledWith('es')) - await act(async () => { - useAppStore.setState({ settings: { ...getDefaultSettings('/tmp'), uiLanguage: 'en' } }) - }) - await vi.waitFor(() => expect(changeLanguage).toHaveBeenCalledWith('en')) - await act(async () => finishSpanish('es')) - expect(changeLanguage).not.toHaveBeenCalledWith('es') - expect(i18n.language).toBe('en') -}) - -it('settles catalog failure to English with recovery while preserving the saved language', async () => { - vi.spyOn(rendererI18n, 'loadRendererUiLanguage').mockRejectedValue(new Error('Catalog offline')) - await renderProvider() - await act(async () => { - useAppStore.setState({ settings: { ...getDefaultSettings('/tmp'), uiLanguage: 'fr' } }) - }) - await vi.waitFor(() => - expect(useLanguageReadiness.getState()).toMatchObject({ ready: true, error: true }) - ) - expect(i18n.language).toBe('en') - expect(useAppStore.getState().settings?.uiLanguage).toBe('fr') -}) - -it('continues in English while plugin discovery is pending without changing the saved preference', async () => { - Object.defineProperty(window, 'api', { - configurable: true, - value: { plugins: { listLanguagePacks: () => new Promise(() => {}) } } - }) - usePluginLanguagePackStore.setState({ entries: [], loaded: false }) - useAppStore.setState({ - settings: { ...getDefaultSettings('/tmp'), uiLanguage: 'plugin:example.missing/de' } - }) - await renderProvider() - await vi.waitFor(() => - expect(useLanguageReadiness.getState()).toMatchObject({ ready: true, error: false }) - ) - expect(i18n.language).toBe('en') - expect(usePluginLanguagePackStore.getState().loaded).toBe(false) - expect(useAppStore.getState().settings?.uiLanguage).toBe('plugin:example.missing/de') -}) diff --git a/src/renderer/src/store/slices/worktrees/session/folder-workspace-activation-and-activity.test.ts b/src/renderer/src/store/slices/worktrees/session/folder-workspace-activation-and-activity.test.ts deleted file mode 100644 index d3c3e1c075a..00000000000 --- a/src/renderer/src/store/slices/worktrees/session/folder-workspace-activation-and-activity.test.ts +++ /dev/null @@ -1,193 +0,0 @@ -import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest' -import '../../workspace-attention/workspace-unread-characterization-fixture' -import type { AppState } from '../../../types' -import type { FolderWorkspace } from '../../../../../../shared/folder-workspaces/folder-workspace-types' -import type { ProjectGroup } from '../../../../../../shared/project/groups/project-group-types' -import { folderWorkspaceKey } from '../../../../../../shared/workspace/identity/workspace-scope' -import { - createCompatibleRuntimeStatusResponseIfNeeded, - type RuntimeEnvironmentCallRequest -} from '../../../../runtime/rpc/testing/runtime-compatibility-test-fixture' -import { clearRuntimeCompatibilityCache as clearRuntimeCompatibilityCacheForTests } from '../../../../runtime/rpc/compatibility/runtime-compatibility-cache' -import { createTestStore } from '../../../testing/app-store-test-fixture' - -const folderWorkspacesUpdate = vi.fn() -const folderWorkspacesList = vi.fn() -const runtimeEnvironmentCall = vi.fn() -const runtimeEnvironmentTransportCall = vi.fn() - -const projectGroup: ProjectGroup = { - id: 'group-1', - name: 'Platform', - parentPath: '/workspace/platform', - parentGroupId: null, - createdFrom: 'manual', - tabOrder: 0, - isCollapsed: false, - color: null, - createdAt: 1, - updatedAt: 1 -} - -function makeFolderWorkspace(overrides: Partial = {}): FolderWorkspace { - return { - id: 'folder-workspace-1', - projectGroupId: projectGroup.id, - name: 'Folder workspace', - folderPath: '/workspace/folder', - linkedTask: null, - comment: '', - isArchived: false, - isUnread: false, - isPinned: false, - sortOrder: 1, - lastActivityAt: 0, - createdAt: 1, - updatedAt: 1, - ...overrides - } -} - -type FolderWorkspaceUpdateArgs = { - folderWorkspaceId: string - updates: Partial -} - -function stubFolderWorkspaceApis(): void { - clearRuntimeCompatibilityCacheForTests() - folderWorkspacesUpdate.mockReset() - folderWorkspacesList.mockReset() - runtimeEnvironmentCall.mockReset() - runtimeEnvironmentTransportCall.mockReset() - runtimeEnvironmentTransportCall.mockImplementation((args: RuntimeEnvironmentCallRequest) => { - return createCompatibleRuntimeStatusResponseIfNeeded(args) ?? runtimeEnvironmentCall(args) - }) - vi.stubGlobal('window', { - api: { - folderWorkspaces: { - update: folderWorkspacesUpdate, - list: folderWorkspacesList - }, - runtimeEnvironments: { call: runtimeEnvironmentTransportCall } - } - }) -} - -function seedLocalFolderStore(folderWorkspace: FolderWorkspace) { - const store = createTestStore() - store.setState({ - projectGroups: [{ ...projectGroup, executionHostId: 'local' }], - folderWorkspaces: [folderWorkspace], - refreshGitHubForWorktreeIfStale: vi.fn() - } as Partial) - return store -} - -function respondWithUpdates(base: FolderWorkspace) { - return async (args: FolderWorkspaceUpdateArgs): Promise => ({ - ...base, - ...args.updates, - updatedAt: Math.max(base.updatedAt + 1, Date.now()) - }) -} - -beforeEach(() => { - stubFolderWorkspaceApis() -}) - -afterEach(() => { - vi.useRealTimers() - vi.unstubAllGlobals() -}) - -describe('folder workspace generic activation and activity', () => { - it('coalesces repeated activity persistence while keeping local activity current', async () => { - vi.useFakeTimers() - vi.setSystemTime(1_000) - const folderWorkspace = makeFolderWorkspace() - const workspaceKey = folderWorkspaceKey(folderWorkspace.id) - let resolveFirst!: (workspace: FolderWorkspace) => void - folderWorkspacesUpdate - .mockImplementationOnce( - () => - new Promise((resolve) => { - resolveFirst = resolve - }) - ) - .mockImplementation(respondWithUpdates(folderWorkspace)) - const store = seedLocalFolderStore(folderWorkspace) - - store.getState().bumpWorktreeActivity(workspaceKey) - await vi.advanceTimersByTimeAsync(100) - store.getState().bumpWorktreeActivity(workspaceKey) - await vi.advanceTimersByTimeAsync(100) - store.getState().bumpWorktreeActivity(workspaceKey) - - expect(store.getState().folderWorkspaces[0]?.lastActivityAt).toBe(1_200) - expect(folderWorkspacesUpdate).toHaveBeenCalledTimes(1) - expect(folderWorkspacesUpdate).toHaveBeenLastCalledWith({ - folderWorkspaceId: folderWorkspace.id, - updates: { lastActivityAt: 1_000 } - }) - - // Why: the first IPC must not rewind local activity that advanced while it was in flight. - resolveFirst({ - ...folderWorkspace, - lastActivityAt: 1_000, - updatedAt: 2 - }) - await Promise.resolve() - await Promise.resolve() - - expect(store.getState().folderWorkspaces[0]?.lastActivityAt).toBe(1_200) - - await vi.advanceTimersByTimeAsync(800) - - expect(folderWorkspacesUpdate).toHaveBeenCalledTimes(2) - expect(folderWorkspacesUpdate).toHaveBeenLastCalledWith({ - folderWorkspaceId: folderWorkspace.id, - updates: { lastActivityAt: 1_200 } - }) - await Promise.resolve() - await Promise.resolve() - expect(store.getState().folderWorkspaces[0]?.lastActivityAt).toBe(1_200) - }) - - it('does not rewind local activity when a failed early persist reconciles an older catalog value', async () => { - vi.useFakeTimers() - vi.setSystemTime(1_000) - const folderWorkspace = makeFolderWorkspace() - const workspaceKey = folderWorkspaceKey(folderWorkspace.id) - let rejectFirst!: (error: Error) => void - folderWorkspacesUpdate - .mockImplementationOnce( - () => - new Promise((_resolve, reject) => { - rejectFirst = reject - }) - ) - .mockImplementation(respondWithUpdates(folderWorkspace)) - folderWorkspacesList.mockResolvedValue([ - { ...folderWorkspace, lastActivityAt: 1_000, updatedAt: 2 } - ]) - const store = seedLocalFolderStore(folderWorkspace) - const errorSpy = vi.spyOn(console, 'error').mockImplementation(() => undefined) - - try { - store.getState().bumpWorktreeActivity(workspaceKey) - await vi.advanceTimersByTimeAsync(100) - store.getState().bumpWorktreeActivity(workspaceKey) - expect(store.getState().folderWorkspaces[0]?.lastActivityAt).toBe(1_100) - - rejectFirst(new Error('persist failed')) - await Promise.resolve() - await Promise.resolve() - await Promise.resolve() - - expect(folderWorkspacesList).toHaveBeenCalled() - expect(store.getState().folderWorkspaces[0]?.lastActivityAt).toBe(1_100) - } finally { - errorSpy.mockRestore() - } - }) -}) diff --git a/src/renderer/src/store/terminals/tabs/creation/terminal-creation-orphan-retention.test.ts b/src/renderer/src/store/terminals/tabs/creation/terminal-creation-orphan-retention.test.ts deleted file mode 100644 index 8165e60c503..00000000000 --- a/src/renderer/src/store/terminals/tabs/creation/terminal-creation-orphan-retention.test.ts +++ /dev/null @@ -1,231 +0,0 @@ -import { describe, it, expect, vi, beforeEach } from 'vitest' -import type * as AgentStatusModule from '@/lib/agent-status/aggregation/worktree-agent-status' -import { createTestStore, seedStore } from '../../../testing/app-store-test-fixture' -import { makeLayout, makeTab } from '../../testing/terminal-tab.test-fixture' -import { makeTabGroup, makeUnifiedTab } from '../../../slices/tabs/tab-group.test-fixture' -import { makeWorktree } from '../../../slices/worktrees/worktree.test-fixture' -import '../../retirement/terminal-orphan-cleanup' -import { createStoreCascadesMockApi } from '../../../testing/app-store-cascade-api.test-fixture' - -const mockUnregisterPtyDataHandlers = vi.hoisted(() => vi.fn<() => unknown[]>(() => [])) -const mockRestorePtyDataHandlersAfterFailedShutdown = vi.hoisted(() => vi.fn()) - -vi.mock('sonner', () => ({ - toast: { info: vi.fn(), success: vi.fn(), error: vi.fn(), warning: vi.fn() } -})) - -vi.mock('@/components/terminal-pane/pty-transport/delivery/pty-dispatcher', () => ({})) - -vi.mock('@/components/terminal-pane/pty-transport/shutdown/pty-shutdown-data-suspension', () => ({ - restorePtyDataHandlersAfterFailedShutdown: mockRestorePtyDataHandlersAfterFailedShutdown, - unregisterPtyDataHandlers: mockUnregisterPtyDataHandlers -})) - -vi.mock('@/lib/agent-status/aggregation/worktree-agent-status', async (importOriginal) => { - const actual = await importOriginal() - return { - ...actual, - detectAgentStatusFromTitle: vi.fn().mockReturnValue(null) - } -}) - -vi.mock('@/runtime/rpc/calls/runtime-rpc-call', async (importOriginal) => - ( - await import('@/runtime/workspace-layout/testing/layout-apply-test-transport.test-fixture') - ).runtimeRpcClientWithLayoutApply(await importOriginal()) -) -vi.mock('@/runtime/workspace-layout/frames/runtime-layout-client', async (importOriginal) => - ( - await import('@/runtime/workspace-layout/testing/layout-apply-test-transport.test-fixture') - ).runtimeLayoutClientWithTestFrames(await importOriginal()) -) - -const mockApi = createStoreCascadesMockApi() - -describe('setActiveWorktree', () => { - beforeEach(() => { - vi.clearAllMocks() - mockApi.worktrees.updateMeta.mockResolvedValue({}) - }) - - it('removes orphan terminal caches while creating a replacement tab', () => { - const store = createTestStore() - const wt = 'repo1::/path/wt1' - const orphanId = 'orphan-terminal' - - seedStore(store, { - worktreesByRepo: { - repo1: [makeWorktree({ id: wt, repoId: 'repo1', path: '/path/wt1' })] - }, - tabsByWorktree: { - [wt]: [makeTab({ id: orphanId, worktreeId: wt })] - }, - unifiedTabsByWorktree: { - [wt]: [] - }, - ptyIdsByTabId: { - [orphanId]: [] - }, - runtimePaneTitlesByTabId: { - [orphanId]: { 1: 'stale' } - }, - terminalLayoutsByTabId: { - [orphanId]: makeLayout() - }, - pendingStartupByTabId: { - [orphanId]: { command: 'codex' } - }, - automaticAgentResumeClaimsByTabId: { - [orphanId]: { - worktreeId: wt, - launchAgent: 'codex', - providerSession: { key: 'session_id', id: 'sess-1' } - } - }, - pendingInitialCwdByTabId: { - [orphanId]: '/repo/packages/web' - }, - tabBarOrderByWorktree: { - [wt]: [orphanId] - }, - cacheTimerByKey: { - [`${orphanId}:seed`]: 123 - }, - activeTabId: orphanId, - activeTabIdByWorktree: { - [wt]: orphanId - } - }) - - const replacement = store.getState().createTab(wt, undefined, undefined, { - id: 'replacement-terminal', - initialLeafId: '11111111-1111-4111-8111-111111111111' - }) - const s = store.getState() - - expect(s.ptyIdsByTabId[orphanId]).toBeUndefined() - expect(s.runtimePaneTitlesByTabId[orphanId]).toBeUndefined() - expect(s.terminalLayoutsByTabId[orphanId]).toBeUndefined() - expect(s.pendingStartupByTabId[orphanId]).toBeUndefined() - expect(s.automaticAgentResumeClaimsByTabId[orphanId]).toBeUndefined() - expect(s.pendingInitialCwdByTabId[orphanId]).toBeUndefined() - expect(s.cacheTimerByKey[`${orphanId}:seed`]).toBeUndefined() - const replacementLayout = s.terminalLayoutsByTabId[replacement.id] - expect(replacementLayout?.root).toEqual({ - type: 'leaf', - leafId: '11111111-1111-4111-8111-111111111111' - }) - }) - - it('keeps surviving target-group tab active when inactive creation removes an orphan', () => { - const store = createTestStore() - const wt = 'repo1::/path/wt1' - const orphanId = 'orphan-terminal' - const existingId = 'existing-terminal' - - seedStore(store, { - worktreesByRepo: { - repo1: [makeWorktree({ id: wt, repoId: 'repo1', path: '/path/wt1' })] - }, - tabsByWorktree: { - [wt]: [ - makeTab({ id: orphanId, worktreeId: wt }), - makeTab({ id: existingId, worktreeId: wt }) - ] - }, - unifiedTabsByWorktree: { - [wt]: [ - makeUnifiedTab({ - id: existingId, - entityId: existingId, - worktreeId: wt, - groupId: 'group-1' - }) - ] - }, - groupsByWorktree: { - [wt]: [ - makeTabGroup({ - id: 'group-1', - worktreeId: wt, - activeTabId: orphanId, - tabOrder: [orphanId, existingId], - recentTabIds: [orphanId] - }) - ] - }, - ptyIdsByTabId: { - [orphanId]: [], - [existingId]: [] - }, - activeTabId: orphanId, - activeTabIdByWorktree: { - [wt]: orphanId - } - }) - - store.getState().createTab(wt, 'group-1', undefined, { activate: false }) - const s = store.getState() - - expect(s.activeTabIdByWorktree[wt]).toBe(existingId) - }) - - it('keeps surviving non-target group tab active when inactive creation removes an orphan', () => { - const store = createTestStore() - const wt = 'repo1::/path/wt1' - const orphanId = 'orphan-terminal' - const existingId = 'existing-terminal' - - seedStore(store, { - worktreesByRepo: { - repo1: [makeWorktree({ id: wt, repoId: 'repo1', path: '/path/wt1' })] - }, - tabsByWorktree: { - [wt]: [ - makeTab({ id: orphanId, worktreeId: wt }), - makeTab({ id: existingId, worktreeId: wt }) - ] - }, - unifiedTabsByWorktree: { - [wt]: [ - makeUnifiedTab({ - id: existingId, - entityId: existingId, - worktreeId: wt, - groupId: 'group-a' - }) - ] - }, - groupsByWorktree: { - [wt]: [ - makeTabGroup({ - id: 'group-a', - worktreeId: wt, - activeTabId: orphanId, - tabOrder: [orphanId, existingId], - recentTabIds: [orphanId] - }), - makeTabGroup({ - id: 'group-b', - worktreeId: wt, - activeTabId: null, - tabOrder: [] - }) - ] - }, - ptyIdsByTabId: { - [orphanId]: [], - [existingId]: [] - } - }) - - store.getState().createTab(wt, 'group-b', undefined, { activate: false }) - const groups = store.getState().groupsByWorktree[wt] ?? [] - - expect(groups.find((group) => group.id === 'group-a')).toMatchObject({ - activeTabId: existingId, - tabOrder: [existingId], - recentTabIds: [existingId] - }) - }) -}) diff --git a/src/renderer/src/web/web-preload-api-chat-ui-launch-migration.test.ts b/src/renderer/src/web/web-preload-api-chat-ui-launch-migration.test.ts deleted file mode 100644 index eba63f82a9d..00000000000 --- a/src/renderer/src/web/web-preload-api-chat-ui-launch-migration.test.ts +++ /dev/null @@ -1,206 +0,0 @@ -import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest' - -import type { RuntimeRpcResponse } from '../../../shared/remote-runtime/rpc/runtime-rpc-envelope' -import { buildNativeChatProviderUpdate } from '../../../shared/native-chat/native-chat-providers' -import { nativeChatPreferenceFor } from '../../../shared/agent-launch/choices/structured-native-chat-launch-route' -import { - installBrowserGlobals, - writeStoredRuntimeEnvironment -} from './web-preload-api-test-harness' - -const SETTINGS_KEY = 'orca.web.settings.v1' - -async function loadSettings(stored: Record | null) { - const globals = installBrowserGlobals('Linux') - if (stored) { - globals.storage.setItem(SETTINGS_KEY, JSON.stringify(stored)) - } - const { installWebPreloadApi } = await import('./web-preload-api') - installWebPreloadApi() - const settings = await globals.window.api.settings.get() - const saved: Record = JSON.parse(globals.storage.getItem(SETTINGS_KEY) ?? '{}') - return { settings, saved, globals } -} - -const oldHost = vi.hoisted(() => { - const calls: string[] = [] - const state: { - on: boolean - fail: boolean - calls: string[] - reply?: Record - call?: ( - method: string, - params?: unknown, - options?: { timeoutMs?: number } - ) => Promise> - } = { on: false, fail: false, calls } - return state -}) -vi.mock('./web-runtime-client', () => ({ - WebRuntimeClient: class { - async call(method: string, params?: unknown, options?: { timeoutMs?: number }) { - oldHost.calls.push(method) - if (oldHost.call) { - return oldHost.call(method, params, options) - } - if (oldHost.fail) { - throw new Error('offline') - } - return { - id: method, - ok: true, - _meta: { runtimeId: 'released-host' }, - result: { - settings: oldHost.reply ?? { - experimentalNativeChat: oldHost.on, - experimentalStructuredNativeChat: oldHost.on, - openAgentTabsInChatByDefault: false, - agentDefaultSurface: oldHost.on ? 'chat' : 'terminal', - nativeChatProviders: { claude: oldHost.on, codex: oldHost.on }, - compactWorktreeCards: true, - minimaxGroupId: 'live-host-group' - } - } - } - } - close() {} - } -})) - -describe('current browser owner at remote settlement', () => { - beforeEach(() => { - vi.resetModules() - oldHost.fail = false - oldHost.call = undefined - oldHost.reply = undefined - oldHost.calls = [] - }) - afterEach(() => { - vi.useRealTimers() - vi.unstubAllGlobals() - }) - - const methods = ['settings.get', 'settings.update', 'settings.updatePRBotAuthorOverride'] as const - async function paired(initialChat = false) { - const { globals } = await loadSettings({ - agentDefaultSurface: initialChat ? 'chat' : 'terminal', - nativeChatProviders: { 'acme-agent': true } - }) - writeStoredRuntimeEnvironment(globals.storage) - vi.resetModules() - const { installWebPreloadApi } = await import('./web-preload-api') - installWebPreloadApi() - return globals - } - function syncSettings(api: Window['api']) { - const settings = api.settings.getSync() - expect(settings).not.toBeNull() - if (settings === null) { - throw new Error('Browser settings must be synchronously available') - } - return settings - } - function start(api: Window['api'], method: string, visibility = false) { - if (method === 'settings.get') { - return api.settings.get() - } - if (method === 'settings.update') { - return api.settings.set( - visibility - ? { worktreeVisibilityDefaults: { external: 'show' } } - : { compactWorktreeCards: false } - ) - } - return api.settings.updatePRBotAuthorOverride({ author: ' Robot ', isBot: true }) - } - async function choose(api: Window['api'], chat: boolean) { - const current = await api.settings.set({ agentDefaultSurface: chat ? 'chat' : 'terminal' }) - return api.settings.set(buildNativeChatProviderUpdate(current, 'codex', !chat)) - } - function check(settings: Awaited>, chat: boolean) { - expect(settings.agentDefaultSurface).toBe(chat ? 'chat' : 'terminal') - expect(settings.nativeChatProviders).toEqual({ 'acme-agent': true, codex: !chat }) - expect(nativeChatPreferenceFor(settings, 'future-agent')).toBe(chat) - expect(nativeChatPreferenceFor(settings, 'codex')).toBe(!chat) - } - function delay() { - let release = (_settings?: Record) => {} - let reject = (_reason: Error) => {} - let enter = () => {} - const entered = new Promise((resolve) => { - enter = resolve - }) - oldHost.call = (method) => - new Promise((resolve, fail) => { - release = (settings) => - resolve({ - id: method, - ok: true, - result: { settings: settings ?? {} }, - _meta: { runtimeId: 'released-host' } - }) - reject = fail - enter() - }) - return { - entered, - release: (settings?: Record) => release(settings), - reject: (error: Error) => reject(error) - } - } - - it.each(methods.flatMap((method) => [false, true].map((chat) => ({ method, chat }))))( - 'retains current intent through delayed $method with Chat=$chat, persistence and reopen', - async ({ method, chat }) => { - const globals = await paired(!chat) - const pending = delay() - const earlier = start(globals.window.api, method) - await pending.entered - await choose(globals.window.api, chat) - const replacement = { - ...JSON.parse(globals.storage.getItem(SETTINGS_KEY) ?? '{}'), - experimentalNativeChat: { replacement: chat } - } - globals.storage.setItem(SETTINGS_KEY, JSON.stringify(replacement)) - pending.release({ - compactWorktreeCards: true, - prBotAuthorOverrides: [' Robot '], - ...(chat - ? { - experimentalNativeChat: false, - experimentalStructuredNativeChat: false, - openAgentTabsInChatByDefault: false, - agentDefaultSurface: 'terminal', - nativeChatProviders: { codex: true } - } - : {}) - }) - const returned = await earlier - check(returned, chat) - expect(returned).not.toHaveProperty('experimentalNativeChat') - expect( - JSON.parse(globals.storage.getItem(SETTINGS_KEY) ?? '{}').experimentalNativeChat - ).toEqual({ replacement: chat }) - if (method === 'settings.updatePRBotAuthorOverride') { - expect(returned.prBotAuthorOverrides).toEqual(['robot']) - } else { - expect(returned.compactWorktreeCards).toBe(true) - } - check(syncSettings(globals.window.api), chat) - expect(JSON.parse(globals.storage.getItem(SETTINGS_KEY) ?? '{}')).toMatchObject({ - agentDefaultSurface: returned.agentDefaultSurface, - nativeChatProviders: returned.nativeChatProviders - }) - oldHost.call = undefined - vi.resetModules() - const { installWebPreloadApi } = await import('./web-preload-api') - installWebPreloadApi() - check(await globals.window.api.settings.get(), chat) - check( - await globals.window.api.settings.set({ agentDefaultSurface: chat ? 'chat' : 'terminal' }), - chat - ) - } - ) -}) diff --git a/src/shared/agent-session/lifecycle/launch/agent-session-sign-in.test.ts b/src/shared/agent-session/lifecycle/launch/agent-session-sign-in.test.ts deleted file mode 100644 index ffcd2d991a3..00000000000 --- a/src/shared/agent-session/lifecycle/launch/agent-session-sign-in.test.ts +++ /dev/null @@ -1,22 +0,0 @@ -import { describe, expect, it } from 'vitest' -import { agentSessionFailureSentence } from '../../failures/agent-session-failure-words' - -describe('agent-specific sign-in guidance', () => { - it('keeps diagnostic text literal and keeps log-only detail off the visible sentence', () => { - const detail = 'No API key found for {{agent}} $t(fake.key)' - expect( - agentSessionFailureSentence( - { kind: 'notSignedIn', detail: { text: detail, audience: 'person' } }, - 'rejection', - { agentName: 'Pi' } - ) - ).toContain(detail) - expect( - agentSessionFailureSentence( - { kind: 'notSignedIn', detail: { text: detail, audience: 'log' } }, - 'row', - { agentName: 'Pi' } - ) - ).not.toContain(detail) - }) -}) diff --git a/src/shared/agent-session/view/structured-agent-session-projection.test.ts b/src/shared/agent-session/view/structured-agent-session-projection.test.ts deleted file mode 100644 index f23e5e12e96..00000000000 --- a/src/shared/agent-session/view/structured-agent-session-projection.test.ts +++ /dev/null @@ -1,22 +0,0 @@ -import { describe, expect, it } from 'vitest' -import type { AgentJournalRenderItem } from '../journal/agent-session-journal-types' -import { projectStructuredItemToNativeChat } from './structured-agent-session-projection' - -function item( - itemId: string, - sequence: number, - body: AgentJournalRenderItem['body'] -): AgentJournalRenderItem { - return { itemId, sequence, revision: 1, observedAt: sequence, body } -} - -describe('structured agent session status projection', () => { - it('projects an item kind this build does not know to no message, never a text bubble', () => { - const unknown = item('future', 1, { - kind: 'future-kind', - text: 'a newer host wrote this' - } as unknown as AgentJournalRenderItem['body']) - - expect(projectStructuredItemToNativeChat(unknown)).toBeNull() - }) -}) diff --git a/src/shared/file-content/node-readable-text.test.ts b/src/shared/file-content/node-readable-text.test.ts deleted file mode 100644 index 3a2b5b38191..00000000000 --- a/src/shared/file-content/node-readable-text.test.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { describe, expect, it } from 'vitest' -import { - NodeReadableTextTooLargeError, - readNodeReadableTextWithinLimit -} from './node-readable-text' - -async function* chunks(values: unknown[]): AsyncGenerator { - yield* values -} - -describe('readNodeReadableTextWithinLimit', () => { - it('preserves accepted UTF-8 bytes split across chunks', async () => { - const encoded = Buffer.from('hello 🌍') - - await expect( - readNodeReadableTextWithinLimit( - chunks([encoded.subarray(0, 8), encoded.subarray(8)]), - encoded.byteLength - ) - ).resolves.toBe('hello 🌍') - }) - - it('rejects before retaining input beyond the byte limit', async () => { - await expect(readNodeReadableTextWithinLimit(chunks(['1234', '5']), 4)).rejects.toEqual( - new NodeReadableTextTooLargeError(5, 4) - ) - }) -}) diff --git a/src/shared/file-search/text-search-invalid-filename.test.ts b/src/shared/file-search/text-search-invalid-filename.test.ts deleted file mode 100644 index d9faa51efde..00000000000 --- a/src/shared/file-search/text-search-invalid-filename.test.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { expect, it } from 'vitest' -import { createAccumulator, ingestRgJsonLine } from './text-search' - -it('reports byte-only filenames as incomplete without inventing a replacement-character path', () => { - const acc = createAccumulator() - const line = JSON.stringify({ - type: 'match', - data: { - path: { bytes: Buffer.from([0xff, 0x2e, 0x74, 0x78, 0x74]).toString('base64') }, - lines: { text: 'needle\n' }, - line_number: 1, - submatches: [{ start: 0, end: 6 }] - } - }) - expect(ingestRgJsonLine(line, '/root', acc, 20)).toBe('continue') - expect(acc.truncated).toBe(true) - expect(acc.totalMatches).toBe(0) - expect(acc.fileMap.size).toBe(0) -}) diff --git a/src/shared/github/projects/project-identity.test.ts b/src/shared/github/projects/project-identity.test.ts deleted file mode 100644 index 58a9199d263..00000000000 --- a/src/shared/github/projects/project-identity.test.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { describe, expect, it } from 'vitest' -import { githubProjectIdentityKey } from './project-identity' - -describe('GitHub project identity', () => { - it('keeps legacy github.com keys while isolating Enterprise hosts and ports', () => { - const project = { owner: 'Acme', ownerType: 'organization' as const, number: 7 } - - expect(githubProjectIdentityKey(project)).toBe('organization:acme:7') - expect(githubProjectIdentityKey({ ...project, host: 'github.com' })).toBe('organization:acme:7') - expect(githubProjectIdentityKey({ ...project, host: ' GitHub.com ' })).toBe( - 'organization:acme:7' - ) - expect(githubProjectIdentityKey({ ...project, host: 'GHE.EXAMPLE:8443' })).toBe( - 'ghe.example:8443:organization:acme:7' - ) - }) -}) diff --git a/src/shared/plugins/catalog/plugin-marketplace.test.ts b/src/shared/plugins/catalog/plugin-marketplace.test.ts deleted file mode 100644 index 75557da8a21..00000000000 --- a/src/shared/plugins/catalog/plugin-marketplace.test.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { describe, expect, it } from 'vitest' -import { isSameGitRepository } from './plugin-marketplace' - -describe('isSameGitRepository', () => { - it('matches respellings and treats a GitLab subgroup move as a different repository', () => { - expect( - isSameGitRepository( - 'https://gitlab.com/acme/team-a/tool.git', - 'git@gitlab.com:Acme/Team-A/Tool' - ) - ).toBe(true) - // A self-hosted server may serve these as two repositories, so an approval must not carry. - expect( - isSameGitRepository( - 'https://git.example.com/team/Plugin.git', - 'https://git.example.com/team/plugin.git' - ) - ).toBe(false) - expect( - isSameGitRepository( - 'https://gitlab.com/acme/team-a/tool', - 'https://gitlab.com/acme/evil/tool' - ) - ).toBe(false) - }) -}) diff --git a/src/shared/ripgrep/ripgrep-dense-match-json.test.ts b/src/shared/ripgrep/ripgrep-dense-match-json.test.ts deleted file mode 100644 index f4f26b0d565..00000000000 --- a/src/shared/ripgrep/ripgrep-dense-match-json.test.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { expect, it } from 'vitest' -import { parseDenseRipgrepMatchJson } from './ripgrep-dense-match-json' - -it('validates submatches after reaching the requested result cap', () => { - const source = JSON.stringify({ - type: 'match', - data: { - submatches: [ - { start: 0, end: 1 }, - { start: null, end: 2 } - ] - } - }) - expect(() => parseDenseRipgrepMatchJson(source, 1, 16)).toThrow('Invalid rg submatch') -}) - -it('rejects duplicate coordinate fields whose final value is not numeric', () => { - const source = '{"data":{"submatches":[{"start":0,"start":{},"end":1}]}}' - expect(() => parseDenseRipgrepMatchJson(source, 1, 16)).toThrow('Invalid rg submatch') -}) diff --git a/src/shared/rpc-contract/session-tabs/session-tabs-create-resume-session-param.test.ts b/src/shared/rpc-contract/session-tabs/session-tabs-create-resume-session-param.test.ts deleted file mode 100644 index 066e841ea46..00000000000 --- a/src/shared/rpc-contract/session-tabs/session-tabs-create-resume-session-param.test.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { describe, expect, it } from 'vitest' -import { CreateTerminalTab } from './session-tabs-schemas-params' - -const SESSION = { key: 'session_id', id: 'codex-1' } - -describe('session.tabs.createTerminal resumeProviderSession', () => { - it('drops a malformed value instead of refusing the create', () => { - const parsed = CreateTerminalTab.parse({ - worktree: 'id:wt', - resumeProviderSession: { key: 'thread', id: '' } - }) - expect(parsed.resumeProviderSession).toBeUndefined() - }) - - it('refuses it on a fork, which uses the host launch settings', () => { - const parsed = CreateTerminalTab.safeParse({ - worktree: 'id:wt', - sourceChatFork: { sessionId: 'chat-1' }, - clientMutationId: 'fork-1', - resumeProviderSession: SESSION - }) - expect(parsed.success).toBe(false) - }) -}) diff --git a/src/shared/sidebar-list/folders/folder-workspace-lanes.test.ts b/src/shared/sidebar-list/folders/folder-workspace-lanes.test.ts deleted file mode 100644 index 756386a9282..00000000000 --- a/src/shared/sidebar-list/folders/folder-workspace-lanes.test.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { describe, expect, it } from 'vitest' -import { - makeFolderWorkspace, - makeProjectGroup -} from '../../folder-workspaces/folder-workspace-host-routing.test-fixture' -import { getRenderableFolderWorkspaces } from './folder-workspace-lanes' - -const manualGroup = makeProjectGroup({ id: 'group-manual', name: 'Manual', parentPath: null }) -const folderWorkspace = makeFolderWorkspace({ projectGroupId: manualGroup.id }) - -describe('getRenderableFolderWorkspaces', () => { - it('renders a folder workspace whose owning group has no base folder', () => { - expect(getRenderableFolderWorkspaces([folderWorkspace], [manualGroup])).toEqual([ - { folderWorkspace, projectGroup: manualGroup } - ]) - }) - - it('hides a folder workspace whose owning group is not visible', () => { - expect(getRenderableFolderWorkspaces([folderWorkspace], [])).toEqual([]) - }) -}) diff --git a/src/shared/terminal/links/terminal-file-uri-link.test.ts b/src/shared/terminal/links/terminal-file-uri-link.test.ts deleted file mode 100644 index d1952073c1c..00000000000 --- a/src/shared/terminal/links/terminal-file-uri-link.test.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { describe, expect, it } from 'vitest' -import { detectTerminalFileUriLinks } from './terminal-file-uri-link' - -describe('detectTerminalFileUriLinks', () => { - it('keeps standard unescaped parentheses and apostrophes inside the path', () => { - const uri = "file:///tmp/Brennan's%20Report%20(final)" - const [link] = detectTerminalFileUriLinks(`open (${uri})`) - expect(link.pathText).toBe("/tmp/Brennan's Report (final)") - expect(link.displayText).toBe(uri) - }) - - it('trims trailing sentence punctuation but keeps the extension', () => { - const [link] = detectTerminalFileUriLinks('see file:///tmp/out.html.') - expect(link.displayText).toBe('file:///tmp/out.html') - expect(link.pathText).toBe('/tmp/out.html') - }) - - it('does not expose oversized terminal tokens to filesystem probing', () => { - expect(detectTerminalFileUriLinks(`file:///tmp/${'a'.repeat(10_000)}`)).toEqual([]) - }) -}) diff --git a/src/shared/terminal/output/terminal-bell-detector.test.ts b/src/shared/terminal/output/terminal-bell-detector.test.ts deleted file mode 100644 index 8ae219a64fe..00000000000 --- a/src/shared/terminal/output/terminal-bell-detector.test.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { describe, expect, it } from 'vitest' -import { createBellDetector } from './terminal-bell-detector' - -describe('createBellDetector', () => { - it('keeps split OSC state so title terminators are not reported as bells', () => { - const detector = createBellDetector() - - expect(detector.chunkContainsBell('\x1b]0;Codex working')).toBe(false) - expect(detector.chunkContainsBell('\x07')).toBe(false) - expect(detector.chunkContainsBell('\x07')).toBe(true) - }) - - it('treats BEL after a split non-OSC escape as a real bell', () => { - const detector = createBellDetector() - - expect(detector.chunkContainsBell('\x1b')).toBe(false) - expect(detector.chunkContainsBell('\x07')).toBe(true) - }) -})