refactor: roar extension architecture around focused runtime, integration, CLI, and publish seams#69
Merged
TrevorBasinger merged 7 commits intomainfrom Apr 21, 2026
Conversation
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.
Summary
This PR completes the extension-architecture refactor roadmap in roar and updates the docs to match the current codebase.
Key changes:
Why
The codebase had already converged on a few focused extension seams rather than a generic plugin host. This PR makes those seams explicit, reduces cross-layer coupling, and leaves roar easier to maintain and extend without changing user-facing behavior.
Architecture Seams
This PR cleans up some cross pollination between modules and enforces the following clear boundaries.
flowchart LR subgraph CLI["CLI"] Registry["command_registry.py"] CLIInit["cli/__init__.py"] Commands["top-level command specs"] Registry --> CLIInit CLIInit --> Commands end subgraph Runtime["Execution runtime"] Host["host_execution.execute_host_run"] Coordinator["RunCoordinator"] Resources["RuntimeResourceController"] Proxy["ProxyRuntimeResource"] Backends["backend adapters: local, ray, osmo"] Host --> Coordinator Host --> Resources Resources --> Proxy Coordinator --> Backends end subgraph Integrations["Integrations"] CoreBootstrap["core.bootstrap"] IntBootstrap["integrations.bootstrap"] Builtins["built-in providers"] Discovery["typed provider discovery"] Telemetry["roar.telemetry_providers"] VCS["roar.vcs_providers"] Legacy["roar.integrations legacy fallback"] CoreBootstrap --> IntBootstrap IntBootstrap --> Builtins IntBootstrap --> Discovery Discovery --> Telemetry Discovery --> VCS Discovery --> Legacy end subgraph Publish["Publish"] PublishRuntime["publish runtime and service"] Preparation["session, register, and put preparation"] Transport["RemoteRegistryTransport"] Glaas["GlaasRemoteRegistryTransport"] PublishRuntime --> Preparation Preparation --> Transport Transport --> Glaas end