Skip to content

refactor: organize shared project and workspace modules - #42757

Merged
nwparker merged 1 commit into
mainfrom
module-layout-v2/shared-project-workspace-c3a681f5
Nov 15, 2026
Merged

nwparker merged 1 commit into
mainfrom
module-layout-v2/shared-project-workspace-c3a681f5

Conversation

@nwparker

@nwparker nwparker commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

ELI5

Group project, repository, workspace and worktree code into the folders that own it, so related code is easier to find.

Files Added Deleted Net
Test 240 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​499 $\color{#cf222e}{\Huge{\mathbf{−}}}$​3247 $\color{#cf222e}{\Huge{\mathbf{−}}}$​2748
Prod 1477 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​2387 $\color{#cf222e}{\Huge{\mathbf{−}}}$​2191 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​196

What Changed

  • Move 71 whole modules from the shared root into concrete project, repository, Git, workspace, worktree and sidebar-list domains. Shared-root files drop from 514 to 443.
  • Update callers across desktop, CLI, mobile and test tooling to concrete defining owners. Remove the borrowed workspace-status default re-export; add no barrels or forwarding aliases.
  • Transport two existing CI ownership file endpoints and one diagnostic source pointer. Keep ownership fingerprints, conservative fallback, localization allowlists and historical timing metadata unchanged.
  • Apply repository test policy to the affected tests: intentionally remove 85 authored registration sites, including nine entire files, and preserve 800 registrations. This removes meaningful characterization coverage; no replacement or unchanged-coverage claim.

Why

Continue the folder cleanup in a larger cohesive batch while preserving production behavior, module identities and initialized boundaries.

Linked Issue

Maintainer-requested cleanup; no separate issue.

Visual Proof

N/A

Production UI and interaction behavior are unchanged.

Testing

  • macOS: moved-module scope passed (8 files / 48 tests), repaired-file scope passed (11 files / 38 tests), and the overlapping post-rebase skill-discovery owner passed (1 file / 19 tests). These scopes overlap and are not summed.
  • Two independent source audits, the complete 228-Program test audit, and fresh base/head/physical dependency collector audits passed. Rebase range-diff preserves the original patch.
  • Normal commit hooks passed. Final pnpm check:changed --base=origin/main --maxWorkers=2 --timeout=3: all 41 non-unit checks passed, including typecheck, changed-code quality, formatting, lint and ratchets. The broad unit step reported two development-rebuild failures and hit the 3-minute cap; it is incomplete, not a local pass or a proven baseline failure. Focused evidence is listed separately above.
  • Full hosted CI is required before merge, including Linux/Windows/macOS builds, unit shards and applicable SSH/E2E checks. No new tests were added for module moves.

Risk

Level: Medium

The broad import fanout could break caller resolution or initialization across desktop, CLI, mobile or remote hosts. Independent source, binding, initializer, test and selector audits cover the candidate; hosted CI covers the platform builds and existing integration journeys. Test-policy removals reduce characterization coverage. A plain revert restores the previous layout and tests; no persisted-data migration is introduced.

AI Disclosure

Internal contributor; not applicable.

Review

Independent reviews check whole-owner bodies and literals, defining-owner bindings, runtime import order, retained test callbacks, selector contacts and the raw/admitted dependency collector. No platform guards, host qualification, folder-workspace behavior, agent/integration protocols, rendering, shortcuts, security policy or resource lifecycle changes are intended. No new runtime work is introduced. Linux, Windows, macOS and SSH validation is recorded by hosted CI.

Agent skill upstream boundary

  • Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

Planning, tracker and detailed audit evidence stay local and ignored.

Checklist

  • This PR is focused on one coherent project/workspace ownership batch
  • I explained what changed and why
  • I stated the risk and revert path
  • N/A visual proof with reason
  • Self-reviewed for correctness, security and performance
  • Cross-platform, SSH/remote, mobile and folder-workspace impact considered
  • Applicable local checks and full hosted CI completed

@nwparker
nwparker merged commit a616643 into main Nov 15, 2026
92 checks passed
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