Repository navigation
refactor(ipc): group SSH and runtime-environment IPC handlers into ipc/ssh/ and ipc/runtime-environments/ - #30362
Conversation
…c/ssh/ and ipc/runtime-environments/ git mv plus import, vi.mock and path-literal rewrites; e2e route regexes and the Windows host lane filter follow the moved handlers.
📝 Walkthrough
Priority: ⬇️ Low Merge Risk: 🔵 Low · up to
|
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
- Configuration used: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
56adb79e-903a-4959-9b3b-51b021d3d1ba
📒 Files selected for processing: 215
.github/workflows/ssh-windows-hosts.ymlconfig/legacy-relay-compat-tags-baseline.txtconfig/legacy-relay-importers-baseline.txtconfig/main-layout-writer-baseline.txtconfig/reliability-gates.jsoncconfig/scripts/check-compat-boundary-imports.mjsconfig/scripts/ci-shard-timings.jsonconfig/scripts/pr-e2e-route-contracts.test.mjsconfig/scripts/pr-e2e-source-routing.mjsconfig/scripts/vitest-node-runtime-files.mjsconfig/scripts/vitest-sqlite-runtime-files.mjssrc/main/ai-vault/runtime-session-scanner.test.tssrc/main/ai-vault/runtime-session-scanner.tssrc/main/ai-vault/runtime-session-search-call.test.tssrc/main/ai-vault/runtime-session-search-call.tssrc/main/browser/doc-preview-file-reader.test.tssrc/main/browser/doc-preview-file-reader.tssrc/main/ephemeral-vm-runtime-ssh.test.tssrc/main/ephemeral-vm-runtime-ssh.tssrc/main/ipc/agent-session-attachment-upload.test.tssrc/main/ipc/agent-session-attachment-upload.tssrc/main/ipc/ai-vault-host-leg-cache-retention.test.tssrc/main/ipc/ai-vault-search.test.tssrc/main/ipc/ai-vault-unresolved-owner.test.tssrc/main/ipc/browser.tssrc/main/ipc/desktop-browser-bridge-wiring.test.tssrc/main/ipc/desktop-browser-bridge-wiring.tssrc/main/ipc/ephemeral-vm-managed-ssh.test.tssrc/main/ipc/ephemeral-vm-runtime-handlers.tssrc/main/ipc/ephemeral-vm.test.tssrc/main/ipc/managed-host-status-publication.test.tssrc/main/ipc/register-core-handlers/register-core-handlers.test.tssrc/main/ipc/register-core-handlers/register-core-handlers.tssrc/main/ipc/runtime-environments/managed-orcad-actions.tssrc/main/ipc/runtime-environments/orcad-delta-move-handlers.test.tssrc/main/ipc/runtime-environments/orcad-delta-move-handlers.tssrc/main/ipc/runtime-environments/orcad-leave-behind-handlers.tssrc/main/ipc/runtime-environments/orcad-runtime-conversion-handlers.test.tssrc/main/ipc/runtime-environments/orcad-runtime-conversion-handlers.tssrc/main/ipc/runtime-environments/orcad-runtime-lifecycle-handlers.test.tssrc/main/ipc/runtime-environments/orcad-runtime-lifecycle-handlers.tssrc/main/ipc/runtime-environments/orcad-runtime-maintenance-handlers.test.tssrc/main/ipc/runtime-environments/orcad-runtime-maintenance-handlers.tssrc/main/ipc/runtime-environments/orcad-ssh-provisioning-handlers.test.tssrc/main/ipc/runtime-environments/orcad-ssh-provisioning-handlers.tssrc/main/ipc/runtime-environments/runtime-environment-abortable-requests.tssrc/main/ipc/runtime-environments/runtime-environment-browser-client-host-handler.test.tssrc/main/ipc/runtime-environments/runtime-environment-browser-client-host-handler.tssrc/main/ipc/runtime-environments/runtime-environment-call-queue.tssrc/main/ipc/runtime-environments/runtime-environment-capability-evidence.test.tssrc/main/ipc/runtime-environments/runtime-environment-capability-evidence.tssrc/main/ipc/runtime-environments/runtime-environment-cli-removal-routing.test.tssrc/main/ipc/runtime-environments/runtime-environment-connectivity-handlers.tssrc/main/ipc/runtime-environments/runtime-environment-diagnostics-broadcast.test.tssrc/main/ipc/runtime-environments/runtime-environment-diagnostics-broadcast.tssrc/main/ipc/runtime-environments/runtime-environment-federated-read-routing.test.tssrc/main/ipc/runtime-environments/runtime-environment-federated-read-transport.bench.test.tssrc/main/ipc/runtime-environments/runtime-environment-handler-channels.tssrc/main/ipc/runtime-environments/runtime-environment-host-dispatch.test.tssrc/main/ipc/runtime-environments/runtime-environment-host-key.test.tssrc/main/ipc/runtime-environments/runtime-environment-host-key.tssrc/main/ipc/runtime-environments/runtime-environment-host-service-ops.tssrc/main/ipc/runtime-environments/runtime-environment-managed-host-disconnect.test.tssrc/main/ipc/runtime-environments/runtime-environment-managed-tunnel.test.tssrc/main/ipc/runtime-environments/runtime-environment-managed-tunnel.tssrc/main/ipc/runtime-environments/runtime-environment-manual-disconnect.tssrc/main/ipc/runtime-environments/runtime-environment-mobile-relay-hosts.test.tssrc/main/ipc/runtime-environments/runtime-environment-mobile-relay-hosts.tssrc/main/ipc/runtime-environments/runtime-environment-pairing-verification.tssrc/main/ipc/runtime-environments/runtime-environment-preference.test.tssrc/main/ipc/runtime-environments/runtime-environment-preference.tssrc/main/ipc/runtime-environments/runtime-environment-recovery-handler.test.tssrc/main/ipc/runtime-environments/runtime-environment-recovery-handler.tssrc/main/ipc/runtime-environments/runtime-environment-removal-cleanup.test.tssrc/main/ipc/runtime-environments/runtime-environment-removal-cleanup.tssrc/main/ipc/runtime-environments/runtime-environment-removal-storage.test.tssrc/main/ipc/runtime-environments/runtime-environment-repair-handler.tssrc/main/ipc/runtime-environments/runtime-environment-request-connections.test.tssrc/main/ipc/runtime-environments/runtime-environment-request-connections.tssrc/main/ipc/runtime-environments/runtime-environment-retry-connections-probe.test.tssrc/main/ipc/runtime-environments/runtime-environment-revision-guard.test.tssrc/main/ipc/runtime-environments/runtime-environment-revision-guard.tssrc/main/ipc/runtime-environments/runtime-environment-session-reconcile.test.tssrc/main/ipc/runtime-environments/runtime-environment-session-reconcile.tssrc/main/ipc/runtime-environments/runtime-environment-session-tabs-delta-decoding.test.tssrc/main/ipc/runtime-environments/runtime-environment-session-tabs-delta-decoding.tssrc/main/ipc/runtime-environments/runtime-environment-session-tabs-delta.integration.test.tssrc/main/ipc/runtime-environments/runtime-environment-shared-control-answers.tssrc/main/ipc/runtime-environments/runtime-environment-shared-control-support.tssrc/main/ipc/runtime-environments/runtime-environment-status-connection.test.tssrc/main/ipc/runtime-environments/runtime-environment-status-diagnostics.tssrc/main/ipc/runtime-environments/runtime-environment-status-owner.tssrc/main/ipc/runtime-environments/runtime-environment-status-probe.tssrc/main/ipc/runtime-environments/runtime-environment-status-recovery.test.tssrc/main/ipc/runtime-environments/runtime-environment-status-retirement.test.tssrc/main/ipc/runtime-environments/runtime-environment-subscription-handlers.tssrc/main/ipc/runtime-environments/runtime-environment-subscription-identity.test.tssrc/main/ipc/runtime-environments/runtime-environment-subscription-layout-recording.test.tssrc/main/ipc/runtime-environments/runtime-environment-support-routing.test.tssrc/main/ipc/runtime-environments/runtime-environment-support-routing.tssrc/main/ipc/runtime-environments/runtime-environment-tailscale-response.tssrc/main/ipc/runtime-environments/runtime-environment-transport-generation.test.tssrc/main/ipc/runtime-environments/runtime-environment-transport-generation.tssrc/main/ipc/runtime-environments/runtime-environment-transport-routing-tailscale-hint.test.tssrc/main/ipc/runtime-environments/runtime-environment-transport-routing.tssrc/main/ipc/runtime-environments/runtime-environment-unreachable-hint.test.tssrc/main/ipc/runtime-environments/runtime-environment-unreachable-hint.tssrc/main/ipc/runtime-environments/runtime-environment-usage-record.tssrc/main/ipc/runtime-environments/runtime-environments-call-routing.test.tssrc/main/ipc/runtime-environments/runtime-environments-capability-cache.test.tssrc/main/ipc/runtime-environments/runtime-environments-ipc-test-harness.tssrc/main/ipc/runtime-environments/runtime-environments-pairing.test.tssrc/main/ipc/runtime-environments/runtime-environments-repair.test.tssrc/main/ipc/runtime-environments/runtime-environments-status-diagnostics.test.tssrc/main/ipc/runtime-environments/runtime-environments-subscription-lifecycle.test.tssrc/main/ipc/runtime-environments/runtime-environments-subscription-routing.test.tssrc/main/ipc/runtime-environments/runtime-environments-subscription-teardown.test.tssrc/main/ipc/runtime-environments/runtime-environments.tssrc/main/ipc/runtime-upload-file-stream.test.tssrc/main/ipc/runtime-upload-file-stream.tssrc/main/ipc/runtime-upload-slice-boundaries.test.tssrc/main/ipc/runtime-upload-temp-sweep.test.tssrc/main/ipc/runtime-upload-temp-sweep.tssrc/main/ipc/settings.tssrc/main/ipc/skill-cloud-ipc-handlers.test.tssrc/main/ipc/skill-cloud-ipc-handlers.tssrc/main/ipc/skill-install-management-ipc-handlers.test.tssrc/main/ipc/skill-install-management-ipc-handlers.tssrc/main/ipc/ssh/ssh-app-shutdown.test.tssrc/main/ipc/ssh/ssh-browse.test.tssrc/main/ipc/ssh/ssh-browse.tssrc/main/ipc/ssh/ssh-connect-attempt-registry.tssrc/main/ipc/ssh/ssh-connect-decision-cancellation.test.tssrc/main/ipc/ssh/ssh-connect-flow.tssrc/main/ipc/ssh/ssh-connection-handlers.tssrc/main/ipc/ssh/ssh-connection-state-callbacks.tssrc/main/ipc/ssh/ssh-credential-cancel.test.tssrc/main/ipc/ssh/ssh-disconnect-cancellation.test.tssrc/main/ipc/ssh/ssh-handler-reregistration.test.tssrc/main/ipc/ssh/ssh-host-launch-session-note.test.tssrc/main/ipc/ssh/ssh-host-launch-session-note.tssrc/main/ipc/ssh/ssh-host-server-connect.tssrc/main/ipc/ssh/ssh-host-server-decision-failure.test.tssrc/main/ipc/ssh/ssh-host-server-on-connect-wiring.test.tssrc/main/ipc/ssh/ssh-host-server-on-connect-wiring.tssrc/main/ipc/ssh/ssh-host-sleep-reconnect.test.tssrc/main/ipc/ssh/ssh-host-sleep-reconnect.tssrc/main/ipc/ssh/ssh-host-user-disconnect.test.tssrc/main/ipc/ssh/ssh-host-user-disconnect.tssrc/main/ipc/ssh/ssh-ipc-context.tssrc/main/ipc/ssh/ssh-ipc-mock-shapes.tssrc/main/ipc/ssh/ssh-ipc-module-mocks.tssrc/main/ipc/ssh/ssh-ipc-test-harness.tssrc/main/ipc/ssh/ssh-managed-host-port-forward-lifecycle.test.tssrc/main/ipc/ssh/ssh-managed-port-forward-restore.tssrc/main/ipc/ssh/ssh-managed-server-unlink-broadcast.test.tssrc/main/ipc/ssh/ssh-passphrase.test.tssrc/main/ipc/ssh/ssh-passphrase.tssrc/main/ipc/ssh/ssh-port-forward-handlers.tssrc/main/ipc/ssh/ssh-port-forward-persistence.tssrc/main/ipc/ssh/ssh-port-forward-restore.test.tssrc/main/ipc/ssh/ssh-renderer-broadcast.tssrc/main/ipc/ssh/ssh-session-teardown.tssrc/main/ipc/ssh/ssh-shutdown-drain.tssrc/main/ipc/ssh/ssh-sign-in-requirement.test.tssrc/main/ipc/ssh/ssh-sign-in-requirement.tssrc/main/ipc/ssh/ssh-state-broadcast-fanout.test.tssrc/main/ipc/ssh/ssh-target-crud-handlers-ownership.test.tssrc/main/ipc/ssh/ssh-target-crud-handlers.tssrc/main/ipc/ssh/ssh-target-lifecycle-queue.tssrc/main/ipc/ssh/ssh-target-registry.test.tssrc/main/ipc/ssh/ssh-test-connection-probe-registry.test.tssrc/main/ipc/ssh/ssh-test-probe-presence.test.tssrc/main/ipc/ssh/ssh.test.tssrc/main/ipc/ssh/ssh.tssrc/main/ipc/wsl-host-gate-off.test.tssrc/main/ipc/wsl-host-handlers.tssrc/main/managed-server/lifecycle/orcad-managed-tunnel.tssrc/main/managed-server/lifecycle/orcad-runtime-conversion-wiring.tssrc/main/managed-server/lifecycle/orcad-runtime-conversion.tssrc/main/managed-server/lifecycle/orcad-runtime-deployment.tssrc/main/managed-server/lifecycle/orcad-runtime-status.tssrc/main/skills/skill-client-mediated-transfer-cancellation.test.tssrc/main/skills/skill-client-mediated-transfer.test.tssrc/main/skills/skill-client-mediated-transfer.tssrc/main/skills/skill-cloud-grant-installation.test.tssrc/main/skills/skill-cloud-grant-installation.tssrc/main/skills/skill-remote-error-category-parity.test.tssrc/main/skills/skill-remote-install-service.test.tssrc/main/skills/skill-remote-install-service.tssrc/main/skills/skill-runtime-capability.test.tssrc/main/skills/skill-runtime-capability.tssrc/main/ssh/legacy-relay/ssh-relay-version-mismatch-error.tssrc/main/ssh/orcad-migration-delta-move.test.tssrc/main/ssh/orcad-migration-delta-snapshot.test.tssrc/main/ssh/orcad-migration-repository-link.test.tssrc/main/ssh/orcad-runtime-maintenance.tssrc/main/ssh/orcad-ssh-provisioning.tssrc/main/ssh/runtime-ssh-access.tssrc/main/ssh/ssh-connection-reconnect-ladder.test.tssrc/main/startup/headless-serve-ssh-registration.test.tssrc/main/startup/headless-serve-ssh-registration.tssrc/main/startup/main-process-quit.tssrc/main/startup/main-process-runtime-launch-activation.test.tssrc/main/startup/main-process-runtime-launch.tssrc/main/startup/main-process-runtime-service.tssrc/main/window/attach-main-window-services.test.tssrc/main/window/attach-main-window-services.tssrc/main/window/clipboard-agent-session-attachment-paste.test.tssrc/main/window/clipboard-ipc-handlers.test.tssrc/main/window/clipboard-runtime-image-upload.tssrc/main/window/clipboard-runtime-owned-ssh-paste.test.tssrc/renderer/src/components/browser-pane/stream-remote/remote-browser-stream-lifecycle-test-harness.tssrc/renderer/src/components/browser-pane/stream-remote/remote-browser-stream-lifecycle.test.tssrc/renderer/src/components/browser-pane/stream-remote/remote-browser-stream-lifecycle.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
| "runner": "local", | ||
| "platform": "macos", | ||
| "command": "pnpm exec vitest run --config config/vitest.config.ts src/main/ipc/runtime-environments-subscription-teardown.test.ts", | ||
| "command": "pnpm exec vitest run --config config/vitest.config.ts src/main/ipc/runtime-environments/runtime-environments-subscription-teardown.test.ts", |
There was a problem hiding this comment.
🗄️ Data Integrity & Integration | 🟡 Minor | ⚡ Quick win
🔎 Supported by static analysis
🏁 Script executed:
git diff 658953dc23b90d3c637a20951669089f3ed04df8 e6798d4330c358e3ba5915443fd2258376fe3820 -- config/reliability-gates.jsonc | rg -n -C 5 '5318|evidenceRuns|currentCommand|subscription-teardown|terminal-hidden|ssh.test.ts'
sed -n '5300,5325p;10662,10684p;12120,12179p;18768,18783p' config/reliability-gates.jsonc
rg -n 'evidenceRuns|currentCommand' config/scripts/check-reliability-gates.mjs | head -60Repository: stablyai/orca
Length of output: 42140
Preserve historical commands in dated evidence records.
The evidenceRuns[].command fields record the commands that produced the dated results. Keep those commands unchanged. Use relocated paths in commands, testFiles, and currentCommand where present.
…ne runs (#178) * test(unit-gate): run the unit lane's file set and the fork-local tests Two gaps made a gate verdict narrower than it read. The suite ran `defaultExclude` rather than upstream's `UNIT_EXCLUDE`, so it collected 80 files the unit lane quarantines — electron, node-pty, live-shell and the whole cross-version-wire directory — and charged this fork for their reds. And `local/**/*.test.mjs` match nothing in `UNIT_INCLUDE`, so the sync-tooling tests were in no lane at all (fork issue #151 § 3 and § 5). The exclusion switch is `ORCA_BALANCE_UNIT_SHARDS=1`, the one `config/vitest.config.ts` already reads; a `--exclude` flag cannot reach the projects because each sets `extends: false`. Since parity is now a switch, the gate asserts the report collected none of the quarantined files and fails closed if one appears, and it treats an allowlist entry for a quarantined file as a problem rather than letting an entry that can never match sit there. Fork-local tests run first, so a broken sync tool cannot produce a verdict about anything else, and the summary line reports both facts. * test(unit-gate): name every allowlisted failure and drop the quarantined files The manifest was 15 entries, 14 of them file-level wildcards. A wildcard also covers a NEW failure in the same file, which is how one hid for two syncs. Every entry now names its test title, taken from a reconciliation run over the allowlisted files whose arithmetic closes: 32 allowlisted + 5 upstream-quarantined + 1 fixed = 38 records. Three files leave the manifest because the gate no longer runs them: upstream's own unit lane excludes repro-13767, relay-region-correction and the whole cross-version-wire directory, so their reds are upstream's to carry. Ownership is corrected where it was unattributed — both remaining `unattributed` files are upstream files this fork never touched. * test(runtime): assert the documented undefined read for an unbound pane `terminal-pane-screen-prompt.ts` returns `undefined` for a pane it cannot bind to a terminal, and says why in the method's own doc comment: a restored pane reconnects after the hook store starts, so "cannot see it" must not read as "no dialog". The case asserted `toBeNull()` for that path in the same commit that added both (`3526000b5c`), so it never passed — and a file-level allowlist entry kept it hidden inside a 1,476-case file. Found by tightening `local/unit-known-red.json` to test titles (fork issue #151 § 1). Renamed to match what it asserts. * docs(fork): record issue #151's allowlist rework and correct the extend-test diagnosis LOCAL-PATCHES.md gains the section for this work, and the extend-test entry is corrected where fork issue #151 § 4 says it no longer matches the import graph: `ephemeral-vm-runtime-extend.ts:22` imports only `getSshConnectionManager`, so the mock was complete for the module under test and the missing export was only visible to what that module reaches. The 28 `TypeError: {} is not iterable` rejections were a second cause — the renderer's reclaim bridge iterating a non-list `listRuntimes` answer, fixed in `2368ed38da` — which the recorded sentence welded to the mock because both appeared in one run. BRANCHES.md gets the branch's entry and its place under nplez1/main. * test(tools): put the unit gate's tests where the unit suite collects them `tests/tools/**` is in `UNIT_INCLUDE` and is where `local/gate-lint.mjs` keeps its tests, so the gate's judging rules run in the suite rather than only in the gate's own fork-local lane. The lane stays, because `local/sync/lib/*.test.mjs` are still outside `UNIT_INCLUDE` and are what fork issue #151 § 5 is about. Written as vitest to match `tests/tools/lint-gate.test.mjs`; same assertions. * fix(unit-gate): judge an isolated re-run per test, and stop a dead entry hiding Two gaps that naming the entries opened, both from the Opus review round. The isolation re-run asked whether the *file* passed alone. With named entries that question is unanswerable: the file's own allowlisted reds still fail when it runs alone, so a load flake in a file that also has recorded reds always looked like a real break — process-host-dev-rebuild and orca-runtime are both that shape. The re-run now writes its own JSON report and a failure counts as reproduced only when that same test failed there; a missing report still counts as reproduced, so it fails closed. `unseen` meant "the file did not fail", which cannot happen to a dead entry in a file that still reds elsewhere — so a renamed case left its entry matching nothing forever. It now means "nothing in the run matched this entry and it is not stale", which covers the renamed case and the vanished file alike. Also here: the fork-local lane gets its own five-minute deadline instead of the suite's hour, `closeSync` is imported (every `closeSyncSafe` had been throwing into its own catch, leaking the log descriptor), the duplicate JSDoc on `judgeUnhandled` is gone, and `repoPath` normalises the checkout prefix so the new quarantine check can fire on Windows too. The two new checks are extracted and tested rather than inlined in `evaluate()`. * fix(cli): link the launcher this fork actually ships in the privileged repair case The case symlinked `/Applications/Old Orca.app/.../bin/orca` and expected the installer to adopt it. This fork ships `orca-np` (`cli-install-constants.ts:6`), and `isManagedSymlinkTarget` rejects a target whose basename differs from the launcher's own name (`cli-command-inspection.ts:117`), so the installer read its own launcher as a foreign command and refused it: `Refusing to replace non-Orca command at /var/folders/...`. The two sibling cases in this file already link `old/orca-np` — this one arrived later from upstream, after the fork's identity patch. One hunk, and the red is gone rather than recorded, so its allowlist entry goes with it. `local/unit-known-red.json` therefore drops to 31 named entries and its `observedRun` arithmetic closes at 38 records: 31 allowlisted, 5 upstream-quarantined, 2 repaired. The note also stops contradicting itself about keeping an entry that has stopped reproducing: prune wins, and LOCAL-PATCHES.md stays the history of why a class was red. * test(ephemeral-vm): mock the module the extend unit actually imports `vi.mock('./ipc/runtime-environments')` named a path the 2026-10-19 module reorganisation deleted; the code imports `./ipc/runtime-environments/runtime-environments` (`ephemeral-vm-runtime-extend.ts:16`) and the directory has no `index.ts`, so the mock was inert and the real module loaded with everything it reaches. That is the mechanism behind the failure `LOCAL-PATCHES.md` recorded by guess: a gap in the mocked SSH registry surfaced thirty frames away, because the graph the dead mock failed to cut still read `getSshTargetRegistryStore`. Naming the real module is the fix; the registry mock stays as it is. * docs(fork): re-diagnose the extend-test red and record the review round's corrections The review round found the recorded cause wrong twice over, so LOCAL-PATCHES.md now says what is checkable: - the extend test's mock named `./ipc/runtime-environments`, a path the 2026-10-19 reorganisation deleted, so it was inert and the real module loaded — which is why a registry-mock gap surfaced thirty frames away; - the `TypeError: {} is not iterable` rejections had their own cause, the renderer reclaim bridge iterating a non-list answer, fixed in `2368ed38da`; - both files are fork-owned (`902955072a` is fork PR #81, absent from `upstream/main`), so the issue's "send it upstream" premise does not hold. The `local(test)` section also records the two reds the tightening repaired, the per-test isolation rule, the new `unseen` meaning, and the resolved keep-vs-prune contradiction. BRANCHES.md follows: 31 entries, and what § 4 actually turned out to be. * fix(unit-gate): do not call every entry unseen when a selector filters the run A forwarded selector describes a different suite, so every entry outside it matches nothing. Reporting those as unseen made a one-file smoke run print all 31 entries as prune candidates, which is the false signal the new rule was supposed to avoid. Unseen is now only judged when the gate runs the whole suite, and a filtered run says so instead. The quarantine list also stops at twelve names without saying so; it now counts the rest. * fix(unit-gate): waive a failure only when the re-run saw that test pass The per-test rule asked whether the re-run *failed* the test, which is not the same as proof it passed. Three shapes slipped through as waivable flakes: a collect error in the re-run replaces every case with one `(suite)` entry, a failing `beforeAll` reports its cases as skipped, and a report with no files at all has an empty failure set. In each, the original test is absent — and absent is not evidence, which is the rule a missing report already followed. `reproducedFailures()` now waives only a test the re-run reported as passing; a `(suite)` failure is waived only when the file itself passed. A corrupt isolation report is parsed locally instead of through `readJsonFile`, which would exit mid-verdict. `prunableEntries()` replaces the bare `fullRun` filter for the same reason: an entry may be called unseen only on a complete, unfiltered run, and not when its file reported nothing but a collect failure. `repoPath` now checks the path separator, so a sibling checkout named `issue-151-x` no longer reads as inside this one. The judgement moved to `local/unit-gate-judgement.mjs`: it is pure over data the gate already holds, it is what the tests now import, and the gate had grown past this fork's 600-line budget carrying both roles. * docs(fork): point the old privileged-CLI entry at its re-diagnosis `local(test)` § "five more environment-bound reds" filed that case under the `/private/var` symlink cause, which the re-diagnosis two sections down now contradicts — the recorded error path is `/var/…` and the cause is the fork's `orca-np` rename. The bullet says so and points at the entry, rather than leaving two causes for one red. Also names the reorganisation that deleted the extend test's mock path (`1938bd055a`, stablyai#30362) and records where the gate's judgement now lives. * fix(unit-gate): name the preparation steps so the failure line type-checks The changed-code gate's type-aware pass rejects `${label}` in the preparation failure line: destructuring a heterogeneous tuple array widens `label` to `string | string[]`. Objects give it one type, and the fork-local lane still runs before both. * fix(unit-gate): refuse a waiver the re-run contradicts, and read one file's report Round-3 delta findings, both one hunk. A waiver now needs the pass to be the whole story: a name the same report also failed (a `test.each` duplicate) or a `(suite)` entry beside it (a hook broken under) keeps the failure, which is also what puts `rerun.failures` back to work instead of leaving it built and unread. The re-run is also read per file — `reportForFile()` filters by path, because a positional selector is a substring match and `thing.test.ts` collects `thing.test.tsx` too. That function is tested directly, which the `filePassed` branch was not. Prune advice stays silent on a report with no tests at all, not merely on one that did not complete. * test(ipc): accept the gh-account argument the branch-prefix login now takes `a8ca9685a3` (#170) made the branch-prefix login follow the repo's pinned gh account: `resolveLocalGitUsername(repoPath, ghAccount)`. This upstream case still asserted the one-argument call, so `nplez1/main` has been red on it since that merge — it surfaced as the only unallowlisted failure of the first full gate run on this branch, which is exactly what the tightened allowlist exists to show. The case's repo has no binding, so the second argument is `undefined`. * docs(fork): record the gate verdict for issue #151 Verdict on the revision that ships, and the honest note that its first full run found a red the base had carried since #170 rather than a red this branch made — an upstream case still asserting the one-argument branch-prefix login. No entry was stale and none was unseen, which is the check that the tightening was faithful rather than merely equivalent to the wildcard it replaced. BRANCHES.md carries the same verdict plus the three review rounds. * fix(unit-gate): order the fs imports NIT from the merge-resolution review: `closeSync` sorts before `openSync`. EOF2 * docs(fork): reframe the gate verdict the #177 merge superseded PR #177 landed `local/gate-verdict-cache.mjs` and made `local/open-pr.mjs` read it, so a verdict now belongs to one exact revision and the shipped one is quoted in the PR body. This records the earlier full run as what it was — the first run after the tightening, before #177 — instead of calling it the shipped revision's verdict, and notes the merge-resolution review round. Raised as the only MINOR by the review of the merge resolution.
ELI5
src/main/ipchad about 130 SSH and runtime-environment IPC handler files sitting loose among everything else. This PR moves them into two subfolders,ipc/ssh/andipc/runtime-environments/. Nothing the app does changes.What Changed
src/main/ipc/ssh.ts,ssh.test.tsand everysrc/main/ipc/ssh-*file (47 files) move tosrc/main/ipc/ssh/withgit mv. Names are unchanged.src/main/ipc/runtime-environment*,orcad-*andmanaged-orcad-actions*(85 files) move tosrc/main/ipc/runtime-environments/withgit mv. Names are unchanged.vi.mockpaths in 69 importers;reliability-gates.jsonc,ci-shard-timings.jsonand the compat-boundary importer list;src/main/ipc/ssh-host-server-*.tspath filter.ssh/orruntime-environments/segment.managed-orcad-actions.tsgains 6 specs, because the remote fallback route from ci(e2e): start the managed-SSH lane for remote product changes no route names #30210 now catches it underipc/runtime-environments/.git diff -Mshows every moved file as a rename. The only edits inside them are their../import depth.Why
This is round 2's folder plan (§4.2, M6): one concept per folder, so the SSH and runtime-environment IPC surfaces sit together and apart from the rest of
ipc/.Linked Issue
N/A (SSH hardening round 2, S11/M6).
Visual Proof
N/A: a pure file move.
Testing
typecheck:ci: clean.src/main/ipc,src/main/ssh,src/main/managed-serverandsrc/main/wsl, plus the e2e routing, orcad scope and compat-boundary config tests and every other changed test file, single worker: 1,092 files, 11,415 tests, all passing.