Skip to content

refactor: move project setup policy into existing modules - #27001

Closed
nwparker wants to merge 1 commit into
nwparker/followup-metadata-authority-10-09from
nwparker/setup-authority-prerequisite-10-09
Closed

nwparker wants to merge 1 commit into
nwparker/followup-metadata-authority-10-09from
nwparker/setup-authority-prerequisite-10-09

Conversation

@nwparker

@nwparker nwparker commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 2 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​233 $\color{#cf222e}{\Huge{\mathbf{−}}}$​210 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​23
Prod 6 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​74 $\color{#cf222e}{\Huge{\mathbf{−}}}$​68 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​6

ELI5

Keep Orca's current behavior while putting existing parent selection, automation host matching and Settings setup grouping in the modules that already own those concepts.

What Changed

Move five existing functions into three existing domain modules and update their imports. Move seven existing repository-removal tests into a focused file that uses the same routing harness and assertions. No product function, handler, hook, state, style or wire name changes.

Why

This prerequisite gives the following setup-owner repair room within the existing file-size limits. Reusing the existing modules avoids another implementation or a larger unrelated file, and keeps the behavior change in a separate PR.

Linked Issue

Maintainer prerequisite for the setup-owner follow-up, based on metadata authority #26959. No issue is claimed as fixed by this refactor.

Visual Proof

N/A — the component body, hooks, state and classes are unchanged, and this PR changes no visual or interaction behavior.

Testing

  • Automated tests moved with their existing assertions unchanged
  • Source comparisons and local verification completed on macOS

The canonical CLI parent/target/agent, automation context/availability, Settings section/selection/options and repository suites pass: 86 cases in nine files before, the same 86 cases in ten files after. All tests use ORCA_BACKGROUND_LAUNCH=1.

All 23 function bodies, parameter and return declarations, 25 repository-test callbacks, three React hooks, the CLI handler table, call counts and method-name lists match the exact e768c221 baseline. The mechanical move check has no vanished lines; its four added lines are multiline import entries. The only added non-import literals are the new test-file mock registration and describe label.

Node, CLI and web typechecks, full-file lint and React Doctor for all eight paths, parent/default changed-code quality, formatting and whitespace checks pass. Web types use a private copy of the actual pinned Shiki dependency closure: all 2,426 files in 46 packages match their recorded hashes, and the canonical source files, compiler options and existing aliases are preserved. No dependency install, shared dependency change or app launch was performed during local validation. Ordinary CI is now complete: all 35 latest checks pass or skip, including all five unit shards, static/types, relay, Linux/Windows packaging and native smoke checks. One original NativeChat highlight case timed out; its failure remains preserved and unclassified. The single root-approved job retry passed that case in 314 ms and the entire shard on the same 501ddb999b5630cff6e99f3ffff5977a9cafc8f0 checkout without a source change. No broader rerun or timeout/expectation change was made.

AI Disclosure

Codex assisted the extraction, verification and review.

Review

Independent and root review of exact a7ae7d1 source found no blockers. The independent reviewer also passed all 86 tests in 10 suites with no skips.

Agent skill upstream boundary

  • Not applicable; no upstream skill-installer source, tests or registry material was copied or translated.

Notes

This changes no cross-platform, SSH, folder-workspace, mobile or mixed-version policy. The existing metadata-authority contribution remains in the parent ancestry; this PR adds no human coauthor trailer.

Checklist

  • Small, focused prerequisite
  • Mechanism and purpose explained
  • Visual proof is N/A with reason
  • Self-reviewed behavior preservation and existing routing ownership
  • Cross-platform, SSH/remote and backwards compatibility considered
  • Focused tests, types, full-file lint and quality pass
  • CI and packaging checks complete; original failure and bounded retry retained

Keep CLI parent selection, automation host matching, and Settings setup grouping unchanged while moving them into their existing domain modules. Split the existing repo-removal routing cases without changing their assertions.
@nwparker
nwparker marked this pull request as ready for review October 9, 2026 23:25
@OrcaWin

OrcaWin commented Oct 11, 2026

Copy link
Copy Markdown
Collaborator

Closing: this is a behavior-neutral file move stacked on #26959 (now closed) to make room for the held setup-owner follow-up. It doesn't reduce or clarify code on its own (net +6 production lines), so it isn't worth landing by 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.

2 participants