Skip to content

refactor: group process and platform modules by ownership - #42742

Merged
nwparker merged 3 commits into
mainfrom
module-layout-v2/shared-platform-process-fce620d9
Nov 15, 2026
Merged

nwparker merged 3 commits into
mainfrom
module-layout-v2/shared-platform-process-fce620d9

Conversation

@nwparker

@nwparker nwparker commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

ELI5

Group platform and process modules by the work they own: process observation, shell launch and command resolution, native storage, Node distribution, and Orcad runtime support. Consumers import definitions directly from their owners.

Files Added Deleted Net
Test 125 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​241 $\color{#cf222e}{\Huge{\mathbf{−}}}$​759 $\color{#cf222e}{\Huge{\mathbf{−}}}$​518
Prod 352 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​491 $\color{#cf222e}{\Huge{\mathbf{−}}}$​422 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​69

What Changed

  • Relocate complete modules and their fixtures; remove the process-reader constant forwards and Windows-security type forwards.
  • Preserve process-reader instances, native pools, initialization, generated Node-pin bytes, and the Python credential fixture. Keep native lookup candidates and trusted roots at their existing locations when the security loader moves one directory deeper.
  • Transport active workflow/test/resource selectors and existing baseline paths. Update only the moved ownership-record endpoint; preserve its fingerprints and conservative test-selection fallback.
  • Apply the repository test policy: retire five test files and seven whole registrations, with their exclusive scaffolding. This removes existing behavioral coverage. Preserve the remaining 429 whole registrations without assertion rewrites or replacement tests.

Why

These modules have concrete domain owners. Grouping them makes dependencies and native-resource boundaries easier to follow as the codebase grows.

Linked Issue

Maintainer-directed folder cleanup. The full tracker and detailed evidence remain local and uncommitted.

Visual Proof

N/A — module ownership and resource-path preservation; no rendered UI change.

Testing

  • Local typecheck gate passed for Node, web and CLI; changed-code quality passed with zero findings across 453 files. Node runtime pin, test-file runner and flaky-pattern checks passed.
  • ORCA_BACKGROUND_LAUNCH=1 pnpm test <16 focused files> --maxWorkers=2: 16 files / 88 tests passed; the existing workflow-classifier test also passed (1 file / 1 test), covering process observation, launch and command resolution, native-loader selection, ACLs, and runtime pinning.
  • Independent audits verified production ASTs and module identities, all 429 retained test registrations, initializer order, resource selectors, generated files and the conservative dependency-selection fallback.
  • Fresh CLI emission and both flat Orcad server/CLI builds passed. The actual emitted native-loader anchors passed 28 positive and 16 negative path cases per artifact. Fresh hosted Windows native/package, headless glibc/musl and all six persistence-platform qualifications passed.
  • Final ORCA_BACKGROUND_LAUNCH=1 pnpm check:changed --timeout=3 on 876a7064930b after rebase: all 48 non-unit checks passed. The broad selected-unit run reported two failures in process-host-dev-rebuild.test.ts and hit the three-minute cap; it remains incomplete and is not a pass.
  • CI exposed a host-path origin issue in Windows path emulation and a stale import inside an embedded bundle entry. Both are corrected. The four existing focused suites pass (23 tests), including both failing filesystem suites and the real packaged PTY boundary. Fresh CLI and both flat Orcad bundles build successfully.
  • Rebased onto 8c958bb9a72; both incoming UI files are preserved. Full hosted workflow 43725542618 passed on 876a7064930b after one failed-job-only retry of the unreproduced rewind case. All 12 unit shards, SSH shards, WSL, packaging and the aggregate passed. The original failure remains recorded; isolated candidate and pristine-main controls both passed, which does not prove a baseline failure.
  • Required hosted checks passed. No rendered UI change; no new tests or assertion rewrites.

Risk

Level: Medium. Incorrect import or resource paths could prevent process observation, shell launch, native storage, or a packaged CLI/remote runtime from starting. Independent source/resource audits, focused tests, emitted-build inspection, and required platform CI cover these boundaries. A plain revert restores the prior layout; no saved-data migration occurs.

Review

Review module identity and initializer order, the source/emitted/chunk/flat native-loader anchors, generated-resource equality, direct defining-owner imports, and active test/package selectors. No new barrels or forwarding aliases.

Agent skill upstream boundary

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

Checklist

  • Cohesive ownership batch; larger PR scope requested by maintainer.
  • Explained behavior, risk, and revert behavior.
  • Cross-platform, SSH/remote, mobile, and folder-workspace boundaries considered.
  • N/A visual proof with reason.
  • Independent source/resource/test audits complete; local validation limits disclosed.
  • Required hosted checks pass before merge.

@nwparker
nwparker force-pushed the module-layout-v2/shared-platform-process-fce620d9 branch from 5762abe to 876a706 Compare November 15, 2026 14:39
@nwparker
nwparker merged commit c3a681f into main Nov 15, 2026
162 of 164 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