Skip to content

refactor(rpc): group request contracts by feature owner - #42063

Merged
nwparker merged 1 commit into
mainfrom
module-layout-v2/rpc-contract-owners-6775615c
Nov 13, 2026
Merged

nwparker merged 1 commit into
mainfrom
module-layout-v2/rpc-contract-owners-6775615c

Conversation

@nwparker

@nwparker nwparker commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

ELI5

Group RPC request contracts by the features they serve, so related schemas live together. Clients and hosts keep the same request shapes, normalization and schema identities.

What Changed

  • Move 148 modules into concrete owners and update their consumers/source selectors. Keep shared primitives, the generated method catalog and sender-type projection at the root.
  • Replace forwarded imports with defining-owner imports; remove unused re-exports and forwarded constants while preserving intentional schema-instance aliases.
  • Make catalog discovery recursive and exclude test/support programs at each discovery boundary. Registry and schemas still load in one bundle, preserving object identity.
  • Apply repository test policy: retain 129 owning-layer cases and retire 62 cases across the moved cohort and touched consumers, including six whole test programs; remove two orphan frozen fixtures. Rehome custom account-env admission and queued-message skill-edit cases beside their implementations. No new tests.

Why

The contract root had 157 direct programs spanning unrelated product domains. Concrete ownership makes each feature easier to navigate. The generator must follow the nested layout without indexing test fixtures or changing method/schema bindings.

Linked Issue

Internal module-layout cleanup; no existing linked issue.

Visual Proof

N/A — request-contract ownership and generator discovery; no visual or interaction change.

Testing

  • Full pnpm tc on macOS.
  • Scoped validation: 30 Node files (119 passed, one platform skip) and two mobile files (nine passed), covering all directly touched surviving tests.
  • pnpm verify:rpc-params-catalog passes after regeneration.
  • Electron Vite build passes, including executable sandbox preload validation and renderer boot graph validation.
  • Two independent native Codex source and boundary/test/generator audits; finite final-head supplements checked before merge.
  • Final pnpm check:changed --base=8025a52e --maxWorkers=2 --timeout=3 after the last edit/rebase, immediately before push. All 48 static/typecheck checks pass. The related-test selection fans out to about 6,940 files and hit the three-minute local unit limit; four process-host dev-rebuild cases also failed. Isolated runs reproduce all four with identical errors on this head and pristine main 8025a52e; their test and build-plugin sources are unchanged. This unit phase is not passing evidence; scoped results are listed above. Full required hosted gates must pass before merge.

No new tests added. Retired cases intentionally lose outer account-env wiring, enum/schema-value, self-computed fingerprint, UTF-8 comparison, metadata clearing, mock calls/work counts, composed launch/projection pipelines, copy, and specific refusal/cleanup ordering alarms without equivalent replacement. Actual Codex resume/fork outputs, Git alias/occupancy and late-collision outcomes remain covered. Retained tests cover narrower custom coercion/admission/projection behavior. Native Windows/WSL shells, live SSH, mobile devices and rendered UI were not exercised locally; hosted required gates must pass before merge.

Risk

Level: Low. A missed import or generator discovery change could omit a method schema or initialize a different schema instance. Audits compare defining owners, request bodies, method mappings, null/uncataloged entries and alias partitions; generation, typechecks and desktop builds cover loading. Saved data and wire formats are unchanged. A plain revert restores the former layout, generator discovery and test selectors.

AI Disclosure

N/A — internal contributor.

Review

Two independent native Codex reviews; normal hosted review and required full-workflow checks before merge. Tracker and detailed evidence remain local and ignored.

Agent skill upstream boundary

  • Not applicable; no upstream skill-installer source or assets copied or translated.

Checklist

  • Cohesive request-contract ownership batch.
  • Explained the change, reason, risk and revert.
  • Visual proof N/A with reason.
  • Cross-platform, SSH/remote, folder-workspace and mobile contract boundaries considered.
  • Independent audits and required checks pass before merge.

@nwparker
nwparker merged commit 075d6b3 into main Nov 13, 2026
81 checks passed
brennanb2025 added a commit that referenced this pull request Nov 13, 2026
Adopt #42063's request-contract regrouping in the branch's queued-bytes and mailbox modules; accept main's queued-bytes case removal.
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.
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