Skip to content

refactor(tooling): organize remaining scripts by domain owners - #38407

Merged
nwparker merged 2 commits into
mainfrom
module-layout-v2/d05-script-owners-46fa
Nov 5, 2026
Merged

nwparker merged 2 commits into
mainfrom
module-layout-v2/d05-script-owners-46fa

Conversation

@nwparker

@nwparker nwparker commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

ELI5

Group the remaining flat tooling scripts by the feature they serve, so builds, releases, CI checks, and benchmarks have clear owners.

What Changed

Move 544 modules into concrete domain directories. The CI timing catalog relocation merged separately in #38409; this PR updates its existing keys for the remaining moves. config/scripts now contains 49 domain directories and no loose root files.

Update package commands, workflow/action entrypoints, imports, subprocess paths, fixture consumers, routing selectors, registry records, and timing keys together. Historical benchmarks still select the real implementation from their checked-out revision. No barrels, forwarding modules, or compatibility copies are introduced. The worktree-deletion benchmark's timing-sample functions move to their defining module with unchanged bodies.

Why

The remaining flat scripts mix unrelated release, build, analysis, runtime-verification, and performance responsibilities. This finishes their ownership layout in one coherent batch.

Linked Issue

Maintainer-directed module-layout cleanup.

Visual Proof

N/A — module and resource relocation; no visual or interaction changes.

Testing

  • Independent source and boundary audits of the full scope, plus exact upstream-preservation checks after rebasing.
  • Node, CLI, and web typechecks; 177 focused resource tests.
  • 17 discovered ratchet routes, 19 changed-check ratchets, and eight historical script-selection fixture cases.
  • Isolated headless CDP fixture exercises terminal CLI command/discovery paths without a real PTY.
  • Locale differential benchmark: 40,560 boundary cases and 8,775 policy-repair cases match.
  • Current log-benchmark fixture builds and executes the relocated measurement child. Its default historical comparison rejects an unchanged dependency hash; the identical failure reproduces with the exact parent benchmark sources.

The initial local changed-check run failed eight tests because macOS resolved the runner's /tmp fixtures through /private/tmp. All 15 tests in the three affected files pass with canonical TMPDIR=/private/tmp, without source or assertion changes. Final TMPDIR=/private/tmp ORCA_BACKGROUND_LAUNCH=1 pnpm check:changed --base=f0e7eaa07067e1d4ea640e8b47d102a0a2176aa7 --maxWorkers=2 --timeout=15 passed all 41 checks, including related unit tests (249.8 seconds), after the final source edits and rebase. On corrected head 31d1566e, the changed E2E cases now pass. Full hosted workflow 41985955251 passed on corrected head 31d1566e after a failed-only retry of the SSH fixture package-download failure. All 98 check results are terminal: 84 succeeded and 14 were skipped; skipped lanes are not counted as passes.

The earlier hosted run exposed a real location-derived root error in the moved dev launcher: it looked under config/scripts/out/cli instead of out/cli. The corrected launcher ascends four levels from its real path. A new isolated regression case runs it outside the repository without a CLI-entry override, alongside the existing override case (2 tests pass). A red control reproduces the old missing-build failure. The headless pairing script also selects the existing concrete native-runtime script owner. A bounded source-location audit checked 537 moved code modules and 230 statically evaluable bindings; dynamic expressions remain outside that check.

Existing tests move with their owners. One regression test is added for the observed default-launcher failure. Local validation uses macOS arm64; hosted CI covers platform/build lanes.

Risk

Level: Medium. Missed filesystem, subprocess, or workflow references could prevent a tooling command from starting. Resource routes, selector membership, historical source selection, and imports are explicitly checked. No data/schema or wire-protocol migration; rollback is a plain revert.

Review

Two independent native Codex audits cover the original moves and prior rebase. Fresh SOURCE and BOUNDARY supplements both pass on corrected head 31d1566e / tree 2678ff2720ec, including all 14 incoming upstream paths and the three correction files. The source supplement inspected 537 moved code outputs and 724 paired declarations/expressions; the boundary supplement checked 717 literal relative requests. Both record explicit limits for computed paths and dynamic dataflow; neither claims hosted CI or merge credit. Two subsequent independent supplements also verify the prospective merge on main dabdb606: all 544 moved modules remain byte/mode exact, all 661 destinations survive, and upstream deletions and metadata changes are preserved. Later renderer-only test trims receive a bounded whole-tree and exact metadata-deletion replay before merge.

Agent skill upstream boundary

  • No upstream skill-installer source or fixtures copied or mechanically translated.

Checklist

  • Concrete owners and direct defining imports; no forwarding layers.
  • Change, rationale, and rollback risk documented.
  • Cross-platform, SSH/remote, mobile and historical-source paths considered.
  • Existing tests retained and relocated; hosted build/platform checks required before merge.

@nwparker
nwparker force-pushed the module-layout-v2/d05-script-owners-46fa branch 2 times, most recently from 331c329 to 5e9aa46 Compare November 5, 2026 06:53
@nwparker
nwparker force-pushed the module-layout-v2/d05-script-owners-46fa branch from 5e9aa46 to 31d1566 Compare November 5, 2026 07:15
@nwparker
nwparker merged commit 6bb2e13 into main Nov 5, 2026
146 of 147 checks passed
audichuang added a commit to audichuang/orca that referenced this pull request Nov 5, 2026
…ead matching workflows

Upstream's release commit 151d5dd copied main's .github/workflows onto
release/v1.4.250, where stablyai#38130 moved the scripts they call, but kept the
release's config/scripts at the old layout. 18 tests in five config/scripts
suites read those workflows and fail on a clean v1.4.250 too. Main's fix is
the 1500-file script move (stablyai#38130, stablyai#38407), which cannot come along, and the
fork keeps upstream workflows disabled, so restore the pre-sync workflows
(keeping fc4defc's golden fixture checkout line).

Drop this commit on the first rebase onto a release that contains
9bd6272 (stablyai#38130).

This reverts the workflow part of commit 151d5dd.
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