Skip to content

refactor(renderer): group startup platform and runtime owners - #40777

Merged
nwparker merged 3 commits into
mainfrom
module-layout-v2/renderer-owner-wave1-d1466f
Nov 10, 2026
Merged

nwparker merged 3 commits into
mainfrom
module-layout-v2/renderer-owner-wave1-d1466f

Conversation

@nwparker

@nwparker nwparker commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

ELI5

Group renderer startup, platform, updates and diagnostics code into folders that describe what each module owns. Consumers import those defining modules directly.

What Changed

  • Move 60 modules into their owning domains. Editor view-state caching joins model-lifetime retention, worker auto-close joins agent orchestration, and the class-name combiner gets a concrete filename.
  • Update consumers and retire obsolete forwarding facades without compatibility exports. Preserve complete production bodies, asset URL modifiers, singleton identity and dependency evaluation order.
  • Apply repository policy to touched suites: retire 362 complete registrations with individual lost alarms recorded locally and no equivalent replacement claimed. Keep 130 current registrations intact; seven earlier retirements stay absent.
  • Reset the existing repo-generation test suite's public runtime revision registry before and after each case so shared workers do not carry a prior pairing into another suite. Keep all 11 complete cases and every assertion unchanged; production transport fences remain intact.
  • Preserve historical reliability receipts while narrowing or removing current protection where retired tests no longer establish it. Fix the shared clock fixture without changing the retained send-in-progress test registration.

Why

The flat renderer lib mixes unrelated domains and obscures ownership. This is the first larger wave of the remaining renderer layout work; full renderer ownership cleanup remains open.

Linked Issue

Continuation of the existing maintainer-authorized module-layout cleanup.

Visual Proof

N/A — module relocation and import cleanup preserve rendered UI and interaction behavior.

Testing

  • Final ORCA_BACKGROUND_LAUNCH=1 pnpm check:changed --maxWorkers=4 --timeout=3: all 38 static checks passed; the broad unit phase timed out. The earlier full local attempt also timed out after 30 minutes. Use the repository AGENTS allowance for excessive selection; no full local unit pass is claimed. All 12 hosted full unit shards and the required aggregate passed on the published head (run 42832289007).
  • Complete current retained cohort plus the generation/fallback suites: 37 suites / 151 tests passed on macOS. The forced producer-first pair passes all 15 cases before and after the cleanup, so no local red/green result is claimed.
  • A local balanced shard ran 676 suites and failed three separate macOS cases (temporary-path canonicalization, WSL shell preparation, and Electron wire timeout); a matched pristine-parent three-suite control reproduced the same three failures. The generation/fallback suites pass in that shard. The full local shard remains NONPASS.
  • Independent source and boundary audits passed for the application, six-file gate correction and final one-file lifecycle correction; root replayed their sealed evidence. The initial hosted shard 6 failed two fallback cases; the final hosted run passes all 12 full unit shards and the required aggregate. Mobile, Windows typecheck parity, headless server and performance contract checks passed. General E2E, real WSL terminal and standalone WSL distro lanes were still running at the merge gate; these advisory results are not counted as passes.
  • No new local rendered UI, physical provider or performance validation claimed. Hosted platform checks are listed above. No tests added.

Risk

Level: Medium. Broad consumer import changes could break renderer startup or lazy loading if an owner or asset modifier were wrong. Complete-program and dependency proofs cover those boundaries; the remaining local and hosted gates validate the published head. No data migration or wire-format change. A plain revert restores the prior layout and retired tests.

Review

Both independent audits preserve prior changes and all incoming main code. Test removals intentionally lose their individually recorded alarms; retained suites are not represented as equivalent replacement coverage.

Agent skill upstream boundary

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

@nwparker
nwparker merged commit b07b3d3 into main Nov 10, 2026
74 checks passed
audichuang added a commit to audichuang/orca that referenced this pull request Nov 12, 2026
…40337, stablyai#40562, stablyai#40688, stablyai#40745, stablyai#40761, stablyai#40777, stablyai#40895, stablyai#40911, stablyai#40936)

Rewrites fork import and vi.mock specifiers to the moved modules, moves the three fork tests that sit
beside moved modules (git-graph-tab, lazy-chunk-recovery-reload, folder-repo-launch-chat-route) and
their seam list entries, takes GIT_GRAPH_REFRESH_EVENT from its own module, and drops the fork's
OpenFile type import that upstream's editor-autosave now carries itself.
audichuang added a commit to audichuang/orca that referenced this pull request Nov 13, 2026
…40337, stablyai#40562, stablyai#40688, stablyai#40745, stablyai#40761, stablyai#40777, stablyai#40895, stablyai#40911, stablyai#40936)

Rewrites fork import and vi.mock specifiers to the moved modules, moves the three fork tests that sit
beside moved modules (git-graph-tab, lazy-chunk-recovery-reload, folder-repo-launch-chat-route) and
their seam list entries, takes GIT_GRAPH_REFRESH_EVENT from its own module, and drops the fork's
OpenFile type import that upstream's editor-autosave now carries itself.
OmarHung added a commit to OmarHung/orca that referenced this pull request Nov 13, 2026
Upstream grouped more renderer owners into folders (stablyai#40230, stablyai#40745,
stablyai#40761, stablyai#40777, stablyai#40895, stablyai#40936) and dropped a few aliases. Fork imports
and vi.mock targets follow the moves, and:

- `@/lib/utils` cn → `@/lib/class-names`; `@/lib/language-detect` →
  `shared/editor-language/editor-language-detect`; agent catalog
  helpers come from `@/lib/agent-catalog/agent-catalog`.
- `BrowserTab` → `BrowserWorkspace`; `collectLeafIdsInOrder` →
  `collectLayoutLeafIdsInOrder`; `ORCA_BROWSER_BLANK_URL` lives in
  `shared/browser/browser-blank-page`; `tuiAgentToAgentKind` in
  `shared/agent-kind`.
- process-host no longer re-exports `SpawnedProcess`/`PipedChildProcess`,
  so SFTP and SSH VPN use node's ChildProcess types.
- The Database and Git Log shortcuts move to their own module so
  app-command-handlers.ts stays under the line cap.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
audichuang added a commit to audichuang/orca that referenced this pull request Nov 14, 2026
…40337, stablyai#40562, stablyai#40688, stablyai#40745, stablyai#40761, stablyai#40777, stablyai#40895, stablyai#40911, stablyai#40936)

Rewrites fork import and vi.mock specifiers to the moved modules, moves the three fork tests that sit
beside moved modules (git-graph-tab, lazy-chunk-recovery-reload, folder-repo-launch-chat-route) and
their seam list entries, takes GIT_GRAPH_REFRESH_EVENT from its own module, and drops the fork's
OpenFile type import that upstream's editor-autosave now carries itself.
audichuang added a commit to audichuang/orca that referenced this pull request Nov 16, 2026
…40337, stablyai#40562, stablyai#40688, stablyai#40745, stablyai#40761, stablyai#40777, stablyai#40895, stablyai#40911, stablyai#40936)

Rewrites fork import and vi.mock specifiers to the moved modules, moves the three fork tests that sit
beside moved modules (git-graph-tab, lazy-chunk-recovery-reload, folder-repo-launch-chat-route) and
their seam list entries, takes GIT_GRAPH_REFRESH_EVENT from its own module, and drops the fork's
OpenFile type import that upstream's editor-autosave now carries itself.
audichuang added a commit to audichuang/orca that referenced this pull request Nov 18, 2026
…40337, stablyai#40562, stablyai#40688, stablyai#40745, stablyai#40761, stablyai#40777, stablyai#40895, stablyai#40911, stablyai#40936)

Rewrites fork import and vi.mock specifiers to the moved modules, moves the three fork tests that sit
beside moved modules (git-graph-tab, lazy-chunk-recovery-reload, folder-repo-launch-chat-route) and
their seam list entries, takes GIT_GRAPH_REFRESH_EVENT from its own module, and drops the fork's
OpenFile type import that upstream's editor-autosave now carries itself.
audichuang added a commit to audichuang/orca that referenced this pull request Nov 18, 2026
…40337, stablyai#40562, stablyai#40688, stablyai#40745, stablyai#40761, stablyai#40777, stablyai#40895, stablyai#40911, stablyai#40936)

Rewrites fork import and vi.mock specifiers to the moved modules, moves the three fork tests that sit
beside moved modules (git-graph-tab, lazy-chunk-recovery-reload, folder-repo-launch-chat-route) and
their seam list entries, takes GIT_GRAPH_REFRESH_EVENT from its own module, and drops the fork's
OpenFile type import that upstream's editor-autosave now carries itself.
audichuang added a commit to audichuang/orca that referenced this pull request Nov 19, 2026
…40337, stablyai#40562, stablyai#40688, stablyai#40745, stablyai#40761, stablyai#40777, stablyai#40895, stablyai#40911, stablyai#40936)

Rewrites fork import and vi.mock specifiers to the moved modules, moves the three fork tests that sit
beside moved modules (git-graph-tab, lazy-chunk-recovery-reload, folder-repo-launch-chat-route) and
their seam list entries, takes GIT_GRAPH_REFRESH_EVENT from its own module, and drops the fork's
OpenFile type import that upstream's editor-autosave now carries itself.
audichuang added a commit to audichuang/orca that referenced this pull request Nov 20, 2026
…40337, stablyai#40562, stablyai#40688, stablyai#40745, stablyai#40761, stablyai#40777, stablyai#40895, stablyai#40911, stablyai#40936)

Rewrites fork import and vi.mock specifiers to the moved modules, moves the three fork tests that sit
beside moved modules (git-graph-tab, lazy-chunk-recovery-reload, folder-repo-launch-chat-route) and
their seam list entries, takes GIT_GRAPH_REFRESH_EVENT from its own module, and drops the fork's
OpenFile type import that upstream's editor-autosave now carries itself.
audichuang added a commit to audichuang/orca that referenced this pull request Nov 20, 2026
…40337, stablyai#40562, stablyai#40688, stablyai#40745, stablyai#40761, stablyai#40777, stablyai#40895, stablyai#40911, stablyai#40936)

Rewrites fork import and vi.mock specifiers to the moved modules, moves the three fork tests that sit
beside moved modules (git-graph-tab, lazy-chunk-recovery-reload, folder-repo-launch-chat-route) and
their seam list entries, takes GIT_GRAPH_REFRESH_EVENT from its own module, and drops the fork's
OpenFile type import that upstream's editor-autosave now carries itself.
audichuang added a commit to audichuang/orca that referenced this pull request Nov 20, 2026
…40337, stablyai#40562, stablyai#40688, stablyai#40745, stablyai#40761, stablyai#40777, stablyai#40895, stablyai#40911, stablyai#40936)

Rewrites fork import and vi.mock specifiers to the moved modules, moves the three fork tests that sit
beside moved modules (git-graph-tab, lazy-chunk-recovery-reload, folder-repo-launch-chat-route) and
their seam list entries, takes GIT_GRAPH_REFRESH_EVENT from its own module, and drops the fork's
OpenFile type import that upstream's editor-autosave now carries itself.
audichuang added a commit to audichuang/orca that referenced this pull request Nov 21, 2026
…40337, stablyai#40562, stablyai#40688, stablyai#40745, stablyai#40761, stablyai#40777, stablyai#40895, stablyai#40911, stablyai#40936)

Rewrites fork import and vi.mock specifiers to the moved modules, moves the three fork tests that sit
beside moved modules (git-graph-tab, lazy-chunk-recovery-reload, folder-repo-launch-chat-route) and
their seam list entries, takes GIT_GRAPH_REFRESH_EVENT from its own module, and drops the fork's
OpenFile type import that upstream's editor-autosave now carries itself.
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