Skip to content

refactor(shared): group host and runtime owners by domain - #42528

Merged
nwparker merged 1 commit into
mainfrom
module-layout-v2/shared-host-runtime-d4c4c466
Nov 15, 2026
Merged

nwparker merged 1 commit into
mainfrom
module-layout-v2/shared-host-runtime-d4c4c466

Conversation

@nwparker

@nwparker nwparker commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

ELI5

Group shared host and runtime code by its feature owner so related contracts and implementation are easier to find.

What Changed

  • Move 196 whole source/test owners into concrete execution-host, backend, remote-runtime, shell, terminal, and workspace folders. Keep substantive root compositions in place.
  • Update imports and live source selectors across 3,275 logical paths. Replace 226 surviving borrowed bindings with imports from their defining owners; remove forwarding-only exports, runtime-types, and an imported-array alias. Add no barrels, wrappers, or compatibility aliases.
  • Preserve implementation bodies, protocol identities, initialization order, historical evidence, and the rollback harness's explicit old-source execution.
  • Retain 125 original test registrations (152 expanded cases). Retire five registrations/six cases across three retained files under repository test policy, with explicit coverage loss and no replacement claim. Preserve all incoming main deletions.

Why

The shared root mixes unrelated responsibilities. Concrete feature folders make ownership and dependency direction clearer without changing runtime behavior.

Linked Issue

Internal folder cleanup; no separate issue. Includes merged prerequisites #42543 and #42577.

Visual Proof

N/A — module ownership and imports; no visual or interaction change intended.

Testing

  • Independent actual-head source, direct-binding, initializer, test-selector and metadata audits passed for fbbe2b90, parent 502d2bdd. The exact combined tree preserves incoming main fixes and deletions, all 196 moved outputs, and the six prerequisite files.
  • Final mandatory ORCA_BACKGROUND_LAUNCH=1 pnpm check:changed --maxWorkers=4 --timeout=5: 47/49 checks passed. Code quality and broad unit selection hit the five-minute cap and remain incomplete. The unit output includes two process-host development-rebuild watcher failures and port-3000 connection refusals. Earlier matched branch/base macOS controls reproduced those two watcher failures with shared dependencies; that does not classify every broad-run diagnostic or establish a current broad local PASS. A separate complete current-head quality run passed with zero new findings across 2,959 changed files.
  • Current-head hosted workflow 43676377941 completed successfully: 98 successful checks and 11 skips, including all 12 unit shards, all four general E2E shards, both SSH shards, platform jobs and the aggregate.
  • Prospective union 7308365a with 3036ed0d passed independent source, initialization and test-input reviews. All 26 incoming paths are preserved; two overlap files contain only the prior import-path transports over current main. Six incoming owning test files passed all 16 cases on the exact combined tree. VM effective inputs are unchanged. The final latest-main union 3bd8fe4c with 7a68b28c passed an additional independent review: its only two further changes are exact incoming release-mirroring files; all source, effect, test and VM inputs carry unchanged.
  • An additional local run of 25 conservative server-hook roots produced 88 passes and 46 failures. A pristine current-main archive under the same local runtime/shared dependencies produced the same 134 case identities and outcomes. Forty-five failure messages match after archive-path normalization; the remaining restart failure differs only in its expected observed end timestamp. This is matched local failure evidence, not a passing run or a blanket cause/flakiness attribution.
  • Earlier owning-test execution passed 37 files / 151 cases with one skipped. Mobile production/test types and web bundle also passed. These are dated executions, not fresh final-head runs.
  • The cross-version VM driver passed nine positive stages and two required negative controls. Its effective inputs remain unchanged through the reviewed rebase; no new VM execution is claimed. The surviving finite selection is 33 roots with 36 support files.
  • No new tests added. Retained folder tests remain byte-identical; repository-policy retirements and incoming upstream deletions carry explicit coverage loss, with no replacement claim.

Risk

Level: Medium. Import fanout crosses desktop, CLI, mobile, remote-host, and cross-version entry points. A missed selector or path could break a platform build or harness. Revert this PR to restore the layout.

Review

Independent review checks bodies, literals, binding identity, type erasure, eager initialization, upstream fixes/deletions, remote/mobile consumers, and test/selector retention. Detailed evidence and the tracker remain local.

Agent skill upstream boundary

  • Not applicable: no upstream skill-installer material is copied or translated.

Notes

The broader shared-root cleanup remains open after this cohort.

Checklist

  • Cohesive shared host/runtime scope
  • Change, purpose, cross-platform/remote risks and rollback explained
  • Visual proof marked N/A with reason
  • Local validation limits documented
  • Final rebased source/effects/test audits passed
  • Hosted checks pass before merge
Files Added Deleted Net
Test 459 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​664 $\color{#cf222e}{\Huge{\mathbf{−}}}$​800 $\color{#cf222e}{\Huge{\mathbf{−}}}$​136
Prod 2541 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​3626 $\color{#cf222e}{\Huge{\mathbf{−}}}$​3487 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​139

@nwparker
nwparker force-pushed the module-layout-v2/shared-host-runtime-d4c4c466 branch 2 times, most recently from 8930fe7 to fb007d2 Compare November 15, 2026 01:09
@nwparker
nwparker force-pushed the module-layout-v2/shared-host-runtime-d4c4c466 branch 4 times, most recently from 9b07bde to f52668b Compare November 15, 2026 03:36
@nwparker
nwparker force-pushed the module-layout-v2/shared-host-runtime-d4c4c466 branch from f52668b to fbbe2b9 Compare November 15, 2026 04:20
@nwparker
nwparker merged commit d5a90c0 into main Nov 15, 2026
109 checks passed
@nwparker
nwparker deleted the module-layout-v2/shared-host-runtime-d4c4c466 branch November 15, 2026 05:10
audichuang added a commit to audichuang/orca that referenced this pull request Nov 16, 2026
Upstream reorganised src/shared, editor and right-sidebar into owner folders
(stablyai#42325, stablyai#42310, stablyai#42528, stablyai#42757, stablyai#42777, stablyai#42332, stablyai#42792, stablyai#42742, stablyai#42702). Fork imports,
including string vi.mock paths, now point at the moved modules (fork-follow-upstream-moves.mjs
FIX lines); the split keybindings barrel (stablyai#42772) is imported from keybindings/types, and the
toast-options test type that stablyai#42265 deleted lives in the fork test.
audichuang added a commit to audichuang/orca that referenced this pull request Nov 18, 2026
Upstream reorganised src/shared, editor and right-sidebar into owner folders
(stablyai#42325, stablyai#42310, stablyai#42528, stablyai#42757, stablyai#42777, stablyai#42332, stablyai#42792, stablyai#42742, stablyai#42702). Fork imports,
including string vi.mock paths, now point at the moved modules (fork-follow-upstream-moves.mjs
FIX lines); the split keybindings barrel (stablyai#42772) is imported from keybindings/types, and the
toast-options test type that stablyai#42265 deleted lives in the fork test.
audichuang added a commit to audichuang/orca that referenced this pull request Nov 18, 2026
Upstream reorganised src/shared, editor and right-sidebar into owner folders
(stablyai#42325, stablyai#42310, stablyai#42528, stablyai#42757, stablyai#42777, stablyai#42332, stablyai#42792, stablyai#42742, stablyai#42702). Fork imports,
including string vi.mock paths, now point at the moved modules (fork-follow-upstream-moves.mjs
FIX lines); the split keybindings barrel (stablyai#42772) is imported from keybindings/types, and the
toast-options test type that stablyai#42265 deleted lives in the fork test.
audichuang added a commit to audichuang/orca that referenced this pull request Nov 19, 2026
Upstream reorganised src/shared, editor and right-sidebar into owner folders
(stablyai#42325, stablyai#42310, stablyai#42528, stablyai#42757, stablyai#42777, stablyai#42332, stablyai#42792, stablyai#42742, stablyai#42702). Fork imports,
including string vi.mock paths, now point at the moved modules (fork-follow-upstream-moves.mjs
FIX lines); the split keybindings barrel (stablyai#42772) is imported from keybindings/types, and the
toast-options test type that stablyai#42265 deleted lives in the fork test.
audichuang added a commit to audichuang/orca that referenced this pull request Nov 20, 2026
Upstream reorganised src/shared, editor and right-sidebar into owner folders
(stablyai#42325, stablyai#42310, stablyai#42528, stablyai#42757, stablyai#42777, stablyai#42332, stablyai#42792, stablyai#42742, stablyai#42702). Fork imports,
including string vi.mock paths, now point at the moved modules (fork-follow-upstream-moves.mjs
FIX lines); the split keybindings barrel (stablyai#42772) is imported from keybindings/types, and the
toast-options test type that stablyai#42265 deleted lives in the fork test.
audichuang added a commit to audichuang/orca that referenced this pull request Nov 20, 2026
Upstream reorganised src/shared, editor and right-sidebar into owner folders
(stablyai#42325, stablyai#42310, stablyai#42528, stablyai#42757, stablyai#42777, stablyai#42332, stablyai#42792, stablyai#42742, stablyai#42702). Fork imports,
including string vi.mock paths, now point at the moved modules (fork-follow-upstream-moves.mjs
FIX lines); the split keybindings barrel (stablyai#42772) is imported from keybindings/types, and the
toast-options test type that stablyai#42265 deleted lives in the fork test.
audichuang added a commit to audichuang/orca that referenced this pull request Nov 20, 2026
Upstream reorganised src/shared, editor and right-sidebar into owner folders
(stablyai#42325, stablyai#42310, stablyai#42528, stablyai#42757, stablyai#42777, stablyai#42332, stablyai#42792, stablyai#42742, stablyai#42702). Fork imports,
including string vi.mock paths, now point at the moved modules (fork-follow-upstream-moves.mjs
FIX lines); the split keybindings barrel (stablyai#42772) is imported from keybindings/types, and the
toast-options test type that stablyai#42265 deleted lives in the fork test.
audichuang added a commit to audichuang/orca that referenced this pull request Nov 21, 2026
Upstream reorganised src/shared, editor and right-sidebar into owner folders
(stablyai#42325, stablyai#42310, stablyai#42528, stablyai#42757, stablyai#42777, stablyai#42332, stablyai#42792, stablyai#42742, stablyai#42702). Fork imports,
including string vi.mock paths, now point at the moved modules (fork-follow-upstream-moves.mjs
FIX lines); the split keybindings barrel (stablyai#42772) is imported from keybindings/types, and the
toast-options test type that stablyai#42265 deleted lives in the fork test.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant