Orchestrator foundation PR: skeleton crate + test scaffolding#46
Open
Orchestrator foundation PR: skeleton crate + test scaffolding#46
Conversation
- Move BackendRuntime trait, SpacetimeRuntime, and ArcaneRuntime from main.rs to new runtime.rs module (349 lines) - Extract control-mode orchestrator (run_control_mode + handle_control_connection) into control.rs (366 lines) - Introduce SharedHandles struct to reduce repetitive .clone() calls inside each spawn_player implementation - Update spawn_context.rs to use crate::runtime::BackendRuntime and SharedHandles instead of direct PlayerLoopShared passing - Drop main.rs from 713 lines to 189 lines (under 350 target) - Add 7 unit tests for the runtime module covering name(), spawn_read(), snapshot_cache_counters(), and SharedHandles construction Closes #38
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #20
First PR of the orchestrator MVP epic. Creates crates/arcane-swarm-orchestrator/ skeleton + test files for all six components, with all tests #[ignore]-d. No behavior change. Zero new runtime functionality. Pure scaffolding so subsequent component PRs have a stable target.
Acceptance
Follows the test-driven agent supervision pattern documented in the design doc.
Components
Note: Component 4 (real-time validity gate) was moved to the benchmark controller per the orchestrator/controller split design decision.