refactor(move): runtime assembly pair into command-runtime (#3294)

Merged
TH
2mo ago
+23-23

Summary

Second physical root-pass move under #3294 (part of #3276, ADR 0033). src/runtime-factory.ts and src/runtime-command-surface.ts — the in-process runtime assembly and the command-surface binding over it — now live under src/command-runtime/, the folder whose command-runtime zone #3288 already derived for them logically. topFolder derives the zone from the folder, so both per-file ROOT_MODULE_ZONES rows are deleted in the final commit; folder-derived ownership replaces them, no new registry. They move as one group since the surface file only composes the factory's result. Importers (src/runtime.ts, daemon runtime modules) re-point. Stack order: this PR is stacked on #3297 (its base branch); merge #3297 first, then retarget this to main (GitHub retargets automatically when the base merges). Refs #3294 (closes when all three root-pass moves land on main).

Validation

  • Rebased head f7c8cc2e9 (onto #3297 head f6723c435): pnpm check:affected --run — all runnable checks passed; tsc -p tsconfig.json clean; drift test green.
  • Rename proof: git diff -M90% --stat f6723c435...HEAD shows both moved files as src/{ => command-runtime}/… renames with only import-spec line hunks (6 and 2 lines); no material content change (rename-only move PR).
  • Planted-violation proof: with the files moved and the rows still present, root-module-zones.test.ts fails listing both as stale; with the rows removed it passes.
  • The moved files had no dedicated test files; their behavior is exercised through src/runtime.ts and the daemon runtime consumers selected by the vitest-related run.
  • Public export surface unchanged: neither file has a package.json#exports entry; src/runtime.ts keeps re-exporting the published shape.
  • Review: cubic P3s resolved; follow-up prose now claims only this PR's collocation; wrong-PR-number thread answered with issue-vs-PR evidence (#3294 is the tracking issue; pull/3294 would 404).