Skip to content

refactor(claude): group root modules by concrete owners - #41437

Merged
nwparker merged 1 commit into
mainfrom
module-layout-v2/claude-root-owners-1769
Nov 12, 2026
Merged

nwparker merged 1 commit into
mainfrom
module-layout-v2/claude-root-owners-1769

Conversation

@nwparker

@nwparker nwparker commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Group the flat Claude module root into concrete owners for SDK transport, child processes, transcripts, hooks, background tasks, subagents, configuration, and structured sessions. Move 156 production/test/support modules and retain the three substantive root adapters. Consumers import defining owners directly; remove nine forwarding statements without adding barrels or compatibility modules.

Preserve production bodies, singleton/error identities, lazy SDK loading, worker output names, worker-loader registration, and fixture assets. Update build entries, resource paths, test routing, and metadata at their owners. Apply the repository test policy by retiring whole registrations: retain 80 registrations, retire 181, and remove 61 wholly retired test files plus 12 proven orphan supports. Retained callbacks preserve their behavior.

Validation:

  • Independent source, import, initialization, resource, test-policy, and full rebase-union audits passed.
  • Production desktop and orcad/worker bundles built successfully.
  • Scoped official tests: 42 files passed, one skipped, one failed; 80 tests passed, two skipped. The failing hydrated launch-token replay case fails identically on the unchanged base under Bun and passes in a separate Node diagnostic.
  • Final rebased pnpm check:changed --maxWorkers=2 --timeout=2: 48 of 49 checks passed, including all three typecheck projects, formatting, lint, import boundaries, resource/build routing, and applicable ratchets. Broad related-unit selection timed out at two minutes (also at five minutes before rebase); scoped results are reported above.

The cleanup tracker and detailed evidence remain local and excluded from this PR. Required hosted checks must pass before merge.

Files Added Deleted Net
Test 115 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​608 $\color{#cf222e}{\Huge{\mathbf{−}}}$​12447 $\color{#cf222e}{\Huge{\mathbf{−}}}$​11839
Prod 214 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​706 $\color{#cf222e}{\Huge{\mathbf{−}}}$​2404 $\color{#cf222e}{\Huge{\mathbf{−}}}$​1698

@nwparker
nwparker merged commit fb58871 into main Nov 12, 2026
78 of 79 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.
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