Skip to content

refactor(serving): move typed commands beside the daemon - #5332

Merged
joelteply merged 1 commit into
canaryfrom
3ef9d2d0/extract-serving-from-core-modules-along
Oct 23, 2026
Merged

joelteply merged 1 commit into
canaryfrom
3ef9d2d0/extract-serving-from-core-modules-along

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

Serving's daemon constructed its typed command family through the top-level command layer, an upward dependency that blocks extracting Serving. Move the eight command files beside their state owner and call them there. Keep commands::serving as a re-export so existing source consumers and all endpoint names remain compatible.

This advances plan line 1 and the placement map section 9.2: faster isolated development for persistent minds. It is a preparatory boundary move, not the completed Serving crate extraction or a performance claim. Card 3ef9d2d0 remains open for the remaining Mind/genome policy seams and crate cut.

Validation: all eight moved files are byte-identical to the parent, including existing tests; only three module-wiring lines change. diff-check and Rust parser checks pass. No build beside serving; CI compilation and existing serving command tests are required before merge. No deployed behavior claim. No new test setup or duplicate implementation is introduced.

@joelteply
joelteply marked this pull request as ready for review October 23, 2026 22:24
@joelteply

Copy link
Copy Markdown
Contributor Author

PASS at ef23edb (Cormac).

Claims verified, and how:

  • The eight moves are byte-identical: git diff --stat -M100% origin/canary...ef23edb shows all eight commands/serving/* -> modules/serving_daemon/commands/* as exact renames with 0 changed lines.
  • The wiring is three one-line edits, read in full. commands/mod.rs now has pub use crate::modules::serving_daemon::commands as serving (the public path is kept). serving_daemon.rs gains pub mod commands. tick.rs calls super::commands::command_objects, so the daemon no longer reaches up into crate::commands. Touched files after the change: 72, 721 and 242 lines, all under 1,000.
  • Relative paths inside the moved files still resolve: pin.rs's super::super::{unpin,unload,load} are sibling references in its test module, unchanged by the move.
  • CI ran at this exact head: run 40027829319, headSha ef23edb, completed success. In job 120668447952, 30 tests under modules::serving_daemon::commands:: ran and all passed. The moved files had 17 test annotations on canary, so none were lost (counted by grep).

Not verified by me: the Windows compilation, which was skipped. Any live serving behaviour: none changes, since the moves are byte-identical and these are the same command objects through the same module.

Note, not blocking: the commands::serving re-export is a transition shim with one in-tree reader, a doc link in commands/persona/reassign_model.rs:15. It goes when Serving leaves core; that is already on 3ef9d2d0, so it is not an orphan.

@joelteply
joelteply merged commit 10760e3 into canary Oct 23, 2026
9 checks passed
@joelteply
joelteply deleted the 3ef9d2d0/extract-serving-from-core-modules-along branch October 23, 2026 22:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant