Skip to content

refactor(mobile): group host catalog credentials and descriptors - #40739

Merged
nwparker merged 4 commits into
mainfrom
module-layout-v2/mobile-host-owners-7c018
Nov 10, 2026
Merged

nwparker merged 4 commits into
mainfrom
module-layout-v2/mobile-host-owners-7c018

Conversation

@nwparker

@nwparker nwparker commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

ELI5

Keep saved host identity, credentials and live host descriptors with their own Mobile features. Import RPC types directly from the files that define them.

What Changed

  • Move 35 existing modules into host-catalog, host-credentials and host-descriptors, updating callers and mocks directly. Keep all five existing native/web pairs together and update their active metadata.
  • Move the complete native/web last-connected operations into host-connection-history. Keep the same serialized mutation queue, timestamp, missing-host handling and best-effort failure behavior. The sole caller retains its original host-store initialization request.
  • Replace the settings-derived RpcOperationSender alias with the original UnvalidatedRpcRequestPort type in all 33 consumers. Remove the alias module, local PushClient alias and unused RpcAcceptedResult forwarding export. Runtime imports and raw sends stay the same.
  • Colocate the complete push register/unregister delivery functions with their existing RPC operation definitions. Reconciliation and the recording adapter import that defining owner directly; remove private recording instrumentation and update both active scenario source paths.
  • Retire 15 complete cases that violate repository test policy, including the now-empty pairing-keychain suite. Preserve 57 complete cases, plus the unchanged Jira case touched by the type correction. These cuts lose their recorded meaningful alarms alongside the prohibited checks; they are not equivalent replacements.

Why

Durable host records and secrets have different ownership from live connections. These modules now sit with their defining domains, with direct imports and no barrels, forwarding wrappers or compatibility aliases.

Linked Issue

Internal module-layout cleanup; no new issue.

Visual Proof

N/A — module ownership and imports change without rendered layout or interaction changes.

Testing

  • Final affected Mobile suites: 21 files, 60 tests passed.
  • Push registration pilot/reply-partition recordings: 2 files, 4 selected cases passed (784 unselected cases skipped).
  • Final Mobile application and test typechecks passed.
  • Normal commit hooks passed. The earlier RPC formatter reflow preserves the complete source AST.
  • The initial root test command excluded Mobile and found no files; rerun correctly from Mobile. An excessively broad recording-family run was stopped and replaced by the focused push selection above; it carries no pass credit.
  • Final ORCA_BACKGROUND_LAUNCH=1 pnpm check:changed: all 16 checks passed (103.9s), including related unit tests.
  • Both independent actual-tree source/boundary reviews and bounded push-delivery supplements accepted, with immutable root replays passed.
  • Full hosted PR Checks, Mobile Checks and Headless Node server workflows passed on 9a08eaa5db3, including all 12 unit shards, static/typecheck, relay and Mobile web bundle lanes. Conditional skipped jobs retain their skipped status.

Risk

Level: Medium. The main risks are credential/catalog singleton identity, mutation ordering, native/web owner resolution and eager initialization. The existing queues, caches, revisions, storage keys and live client lifetimes are preserved. The recency operations retain their complete bodies and platform behavior. The RPC correction changes erased type references without widening the sender contract or adding raw sends. A plain revert restores the previous organization.

The historical raw-port inventory test was deliberately retired upstream. Its unused inventory data remains unchanged; this PR adds no allowance and does not claim the old counter still enforces anything. Current type and operation boundaries remain. Untouched test-policy debt and historical deleted alarms remain documented in local evidence without new cuts or replacement coverage claims.

Cross-platform, remote-host and folder-workspace scoping stays with the same implementations. Local validation runs on macOS; hosted CI supplies its platform coverage before merge.

Review

Prospective source and boundary audits accepted the initial candidate, including complete surviving cases and explicit losses. Actual-parent, connection-history, canonical-type and push-delivery reviews accepted; root replays passed. Plans and detailed evidence stay local and ignored.

Agent skill upstream boundary

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

Checklist

  • Cohesive Mobile host and RPC defining-owner scope
  • Changes, purpose and risk explained
  • No visual change
  • Cross-platform, remote and folder-workspace impact considered
  • Final local gates and required hosted CI passed

@coderabbitai

coderabbitai Bot commented Nov 10, 2026

Copy link
Copy Markdown
Contributor

Explain Change →

Finishing Touches

Generate docstrings

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@nwparker
nwparker merged commit dc9a7ab into main Nov 10, 2026
44 of 45 checks passed
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