Skip to content

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

Merged
thymikee merged 3 commits into
refactor/ws9-daemon-diagnostics-scope-movefrom
refactor/ws9-command-runtime-moves
Oct 8, 2026
Merged

thymikee merged 3 commits into
refactor/ws9-daemon-diagnostics-scope-movefrom
refactor/ws9-command-runtime-moves

Conversation

@thymikee

@thymikee thymikee commented Oct 7, 2026 •

Copy link
Copy Markdown
Member

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 refactor(move): daemon diagnostics scope into daemon-contracts (#3294) #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 (Architecture WS9: physical root-pass moves for daemon-diagnostics-scope, runtime-command-surface, runtime-factory #3294 is the tracking issue; pull/3294 would 404).

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed

Reply with feedback, questions, or to request a fix.

View guided diff | Turn on auto-fix | Re-trigger cubic

Comment thread docs/adr/0033-collocation-decision-table.md Outdated

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 11 files

Requires human review: Auto-approval blocked because this review re-detected 1 unresolved issue already reported by Cubic.

View guided diff | Turn on auto-fix | Re-trigger cubic

Comment thread docs/adr/0033-collocation-decision-table.md
@github-actions

github-actions Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

Size Report

Metric Base Current Diff
Installed (including dependencies) 5.13 MB 5.13 MB 0 B
Package (unpacked) 5.13 MB 5.13 MB 0 B
Package (download) 1.54 MB 1.54 MB -4 B

Startup median (7 runs, lower is better):

Scenario Base Current Diff
CLI --version 20.3 ms 20.7 ms +0.3 ms
CLI --help 60.4 ms 59.4 ms -1.0 ms

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 1 file (changes from recent commits).

Reply with feedback, questions, or to request a fix.

View guided diff | Turn on auto-fix | Re-trigger cubic

Comment thread docs/adr/0033-collocation-decision-table.md Outdated
…me folder

createAgentDeviceRuntime and the command-surface binding over it are the
in-process runtime assembly #3288 already classifies as command-runtime.
They now live under src/command-runtime/, where topFolder derives that
zone from the folder instead of per-file ROOT_MODULE_ZONES rows. Both
files move as one group: the surface file composes the factory's result,
and neither is importable from the other's consumers separately.
Importers (src/runtime.ts and the daemon runtime modules) re-point.
The rows and prose claim only this change's collocation; the
diagnostics-scope wording inherited from #3297 is left untouched.
…ONES

Both files now live under src/command-runtime/, so topFolder derives
their command-runtime zone from the folder and the per-file rows are
redundant. The drift test proves the declaration matches the tree;
the fallow comment follows the moved factory path.
@thymikee

thymikee commented Oct 8, 2026

Copy link
Copy Markdown
Member Author

No problems found in f7c8cc2. The runtime assembly pair moves into command-runtime as described, with all importers updated and no stale paths.

All 14 checks pass, and I know of no conflicts. I did not run the layering scan or the test suite; I checked the layering direction by reading the imports. This PR is stacked on #3297, so please merge #3297 first.

@thymikee thymikee added the ready-for-human Valid work that needs human implementation, judgment, or maintainer merge label Oct 8, 2026
@thymikee

thymikee commented Oct 8, 2026

Copy link
Copy Markdown
Member Author

Thanks — confirmed at f7c8cc2. Stack order acknowledged: merge #3297 first; GitHub retargets this PR to main when the base branch merges, and nothing here depends on re-verification after that (its diff against main afterwards is the same command-runtime changes plus the ADR prose built on #3297's rows).

@thymikee
thymikee added this pull request to stack #3314 October 8, 2026 07:53
@thymikee
thymikee merged commit 75b414a into main Oct 8, 2026
18 checks passed
@thymikee
thymikee deleted the refactor/ws9-command-runtime-moves branch October 8, 2026 07:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-human Valid work that needs human implementation, judgment, or maintainer merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant