Skip to content

refactor: organize shared lifecycle and runtime owners - #42792

Merged
nwparker merged 1 commit into
mainfrom
module-layout-v2/shared-platform-lifecycle-b8c8d544
Nov 15, 2026
Merged

nwparker merged 1 commit into
mainfrom
module-layout-v2/shared-platform-lifecycle-b8c8d544

Conversation

@nwparker

@nwparker nwparker commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

ELI5

Move application startup, profiles, updates, and runtime contracts out of the flat shared directory into their concrete domain folders. Callers import each defining file directly.

What Changed

  • Move 43 production files into application lifecycle, profile, updater, terminal daemon/replay, remote protocol/pairing/host metadata, web-client, CLI, and feedback ownership.
  • Move four surviving tests beside their owners. The shared root goes from 305 to 256 files, including two root test retirements.
  • Update 13 live path references in packaging readers, workflow selectors, embedded child source, current-checkout provenance, existing source navigation, and two sync-fs allowance rows. Keep their counts at 2 and 3.
  • Apply the repository test policy to all 132 touched test files: remove 65 whole registrations and retire 11 files; retain 382 registrations across 121 files. Static potential cases change from 510 to 441. Retained callbacks and parameter rows stay whole.

Production declarations, non-path literals, wire names, initialization dependencies, the realm-global application environment, protocol aggregate order, and incoming terminal shutdown fixes are preserved. Historical release readers, timing records, reliability receipts, and ownership fingerprints keep their original provenance. No barrels or forwarding shims are introduced.

Why

Give startup, shutdown, host protocol, and update contracts explicit owners so the tree explains where code belongs. This continues the larger serial folder-cleanup batches.

Linked Issue

Existing module-layout cleanup; internal maintenance.

Visual Proof

N/A — production modules and import paths move without a UI or interaction change.

Testing

  • Full hosted PR workflow passed: 48 jobs, 41 successful and seven intentionally skipped. All 12 unit shards, selected general/managed-SSH E2E, real WSL, layout oracles, cross-version checks, packaging and the aggregate gate passed. Complete head-check capture: 103 checks, 91 successful and 12 skipped.
  • Current-head focused local tests: 111 files / 422 tests passed; three Windows/WSL files / eight tests skipped on macOS.
  • Final current-base ORCA_BACKGROUND_LAUNCH=1 pnpm check:changed --base=e516efcb --maxWorkers=2 --timeout=3: all 49 non-unit checks passed. Broad units reported two development-rebuild watcher failures and reached the three-minute limit: failed/incomplete, not passing. Pristine current-parent and candidate controls reproduced exactly the same two failures under identical commands; shared dependencies were used and scratch removed. No full local unit pass is claimed.
  • Two independent source audits, whole-test conservation, physical/resource/dependency-graph checks passed. Incoming main changes are separately carried by exact source-state and complete-tree union proofs. No new tests are added for file moves.

Risk

Level: Medium

A missed source-reader path or changed initialization edge could break application startup, packaging, paired phones, SSH hosts, or cross-version loading. Preserve the current-checkout negative provenance trap separately from archived-release paths. The PR can be reverted without a data migration.

The mandated test removals lose scenario alarms, including older-host fallback/refusal, account notification wiring, proxy rollback, newer-daemon hold and startup fallback, mailbox redrive, mocked census/layout/catalog routing, shutdown scheduling, updater caching, renderer restart/checkpoint wiring, pairing revisions, skill updates, and agent inventory/cache instrumentation. Several scenarios concern real safety or recovery behavior, but their removed oracles only used prohibited mocks, private state, constants, timing, counts, or derived expectations. Surviving tests do not establish equivalent replacement coverage. No assertion or parameter-row surgery was used to retain a prohibited callback.

Review

Production declarations, caller identities, initialization order, live resource paths and historical provenance were independently checked. The complete canonical dependency graph matches the independently reconstructed policy/transport model. Graph rules, ownership admissions, allowances and fingerprints are unchanged.

Agent skill upstream boundary

  • This change copies or mechanically translates no upstream skill-installer material.

Checklist

  • Explained the ownership changes and the coverage reduction.
  • Cross-platform, remote-host, mobile, folder-workspace, initialization, resource, and historical-path impact considered.
  • N/A visual proof explained.
  • Current applied-tree audits and final local check complete; validation limits disclosed.
  • Full hosted PR workflow, selected lanes and aggregate gate passed.

@nwparker
nwparker force-pushed the module-layout-v2/shared-platform-lifecycle-b8c8d544 branch from 3b72e0d to 5107d9f Compare November 15, 2026 20:09
@nwparker
nwparker merged commit 69cfecd into main Nov 15, 2026
103 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