Skip to content

refactor(rpc): group root modules by defining owner - #41475

Merged
nwparker merged 2 commits into
mainfrom
module-layout-v2/rpc-root-owners-fb58
Nov 12, 2026
Merged

nwparker merged 2 commits into
mainfrom
module-layout-v2/rpc-root-owners-fb58

Conversation

@nwparker

@nwparker nwparker commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

The RPC root mixed dispatch, caller identity, transports, mobile encryption, terminal streams and orchestration compatibility in one directory. Group those modules under their defining owners and update consumers to import those owners directly. Keep core.ts, dispatcher.ts and transport.ts as substantive root APIs; introduce no barrels or forwarding aliases. Existing method/server owners keep their layout.

This batch moves 157 whole modules, including 74 production owners. Independent source review verifies all 77 production bodies, ordered runtime imports, singleton identities and wire/resource behavior. Repository test-policy review retains 416 registrations and retires 213, including 55 whole test files and three orphan supports; retained callbacks remain unchanged. Update active build/test selectors and ratchet ownership while preserving dated evidence and immutable released-version selectors. Retired test alarms are intentionally lost, with no equivalent replacement claimed.

Validation: all 48 non-unit pnpm check:changed --timeout=2 gates pass, including node/web/CLI/test typechecks, format/lint, imports, changed code quality and reliability checks. The broad related-unit selection exceeded the two-minute limit and is not claimed as passing. Scoped evidence: 103 owning and affected external files / 418 tests pass after the latest rebase. Production main/renderer and orcad bundles pass. Independent source, metadata and native-update preservation audits pass. All required hosted CI and the PR aggregate gate pass on the reviewed head.

An initial external test run started transforming three moved fixtures before rebase had recreated them. The eight affected files and then the exact 25-file selection pass once the tree is stable; no runner or infrastructure changes were made. Planning and audit evidence remain local.

Windows ARM qualification on the prior head repeatedly returned runtime_timeout from the real CLI-launcher integration. Include stdout alongside stderr in that assertion’s diagnostic message; invocation, timeout and expected results remain unchanged. A pristine-main Windows ARM control passes the same case. Rebase onto current main and preserve all upstream changes; independent source/metadata carry passes. Targeted hosted hardware-probe measurements on ARM complete in about 775ms (21ms synchronous spawn), which does not establish the cause of the full RPC timeout. Windows ARM on the rebased head passes 59 files / 210 tests, including the same launcher case (7.9s). This does not establish the cause of the earlier timeout. No flaky or pre-existing classification, timeout increase or speculative production fix is included.

@nwparker
nwparker requested a review from Jinwoo-H as a code owner November 12, 2026 09:07
@nwparker
nwparker force-pushed the module-layout-v2/rpc-root-owners-fb58 branch from 00b39ab to 52185fd Compare November 12, 2026 10:01
@nwparker
nwparker merged commit d3b6609 into main Nov 12, 2026
85 checks passed
audichuang added a commit to audichuang/orca that referenced this pull request Nov 14, 2026
…tests

Upstream stablyai#41322, stablyai#41475, stablyai#41350, stablyai#41437, stablyai#41812, stablyai#41772, stablyai#42063, stablyai#42093, stablyai#42107
and stablyai#21108 moved modules the fork imports or mocks; point fork code, fork tests
and the seam list at the new paths.
lurunzi added a commit to lurunzi/orca that referenced this pull request Nov 16, 2026
…w path

With the v1.4.259 tag merged, the cross-version baseline is v1.4.259
itself, where src/main/runtime/rpc/errors.ts moved to
responses/rpc-response.ts (stablyai#41475). Upstream main made the same change
when its baseline moved past that release.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
lurunzi added a commit to lurunzi/orca that referenced this pull request Nov 16, 2026
* fix: restore the fork's package scripts lost in the v1.4.259 merge

The upstream sync took upstream's package.json whole to settle the
version conflict, which dropped three fork lines:

- ci:local, the local CI entry AGENTS.md tells agents to run;
- prepare:cross-version-releases, which the cross-version wire job calls
  (it failed with "Missing script" on #14);
- --no-error-on-unmatched-pattern on the two lint-staged oxlint configs.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test(cross-version): import the v1.4.259 RPC error mapper from its new path

With the v1.4.259 tag merged, the cross-version baseline is v1.4.259
itself, where src/main/runtime/rpc/errors.ts moved to
responses/rpc-response.ts (stablyai#41475). Upstream main made the same change
when its baseline moved past that release.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
audichuang added a commit to audichuang/orca that referenced this pull request Nov 16, 2026
…tests

Upstream stablyai#41322, stablyai#41475, stablyai#41350, stablyai#41437, stablyai#41812, stablyai#41772, stablyai#42063, stablyai#42093, stablyai#42107
and stablyai#21108 moved modules the fork imports or mocks; point fork code, fork tests
and the seam list at the new paths.
audichuang added a commit to audichuang/orca that referenced this pull request Nov 18, 2026
…tests

Upstream stablyai#41322, stablyai#41475, stablyai#41350, stablyai#41437, stablyai#41812, stablyai#41772, stablyai#42063, stablyai#42093, stablyai#42107
and stablyai#21108 moved modules the fork imports or mocks; point fork code, fork tests
and the seam list at the new paths.
audichuang added a commit to audichuang/orca that referenced this pull request Nov 18, 2026
…tests

Upstream stablyai#41322, stablyai#41475, stablyai#41350, stablyai#41437, stablyai#41812, stablyai#41772, stablyai#42063, stablyai#42093, stablyai#42107
and stablyai#21108 moved modules the fork imports or mocks; point fork code, fork tests
and the seam list at the new paths.
audichuang added a commit to audichuang/orca that referenced this pull request Nov 19, 2026
…tests

Upstream stablyai#41322, stablyai#41475, stablyai#41350, stablyai#41437, stablyai#41812, stablyai#41772, stablyai#42063, stablyai#42093, stablyai#42107
and stablyai#21108 moved modules the fork imports or mocks; point fork code, fork tests
and the seam list at the new paths.
audichuang added a commit to audichuang/orca that referenced this pull request Nov 20, 2026
…tests

Upstream stablyai#41322, stablyai#41475, stablyai#41350, stablyai#41437, stablyai#41812, stablyai#41772, stablyai#42063, stablyai#42093, stablyai#42107
and stablyai#21108 moved modules the fork imports or mocks; point fork code, fork tests
and the seam list at the new paths.
audichuang added a commit to audichuang/orca that referenced this pull request Nov 20, 2026
…tests

Upstream stablyai#41322, stablyai#41475, stablyai#41350, stablyai#41437, stablyai#41812, stablyai#41772, stablyai#42063, stablyai#42093, stablyai#42107
and stablyai#21108 moved modules the fork imports or mocks; point fork code, fork tests
and the seam list at the new paths.
audichuang added a commit to audichuang/orca that referenced this pull request Nov 20, 2026
…tests

Upstream stablyai#41322, stablyai#41475, stablyai#41350, stablyai#41437, stablyai#41812, stablyai#41772, stablyai#42063, stablyai#42093, stablyai#42107
and stablyai#21108 moved modules the fork imports or mocks; point fork code, fork tests
and the seam list at the new paths.
audichuang added a commit to audichuang/orca that referenced this pull request Nov 21, 2026
…tests

Upstream stablyai#41322, stablyai#41475, stablyai#41350, stablyai#41437, stablyai#41812, stablyai#41772, stablyai#42063, stablyai#42093, stablyai#42107
and stablyai#21108 moved modules the fork imports or mocks; point fork code, fork tests
and the seam list at the new paths.
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