refactor(agent): split runner into agent/runner, move orchestrator machinery out of programs#688
Merged
Merged
Conversation
🧙 Wizard CIRun the Wizard CI and test your changes against wizard-workbench example apps by replying with a GitHub comment using one of the following commands: Test all apps:
Test all apps in a directory:
Test an individual app:
Show more apps
Results will be posted here when complete. |
Collaborator
Author
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
gewenyu99
commented
Jun 18, 2026
…chinery out of programs Phase 1: extract agent-runner.ts into agent/runner/: - runner/index.ts — runAgent + runProgram dispatcher (the only isOrchestratorEnabled fork) - runner/bootstrap.ts — bootstrapProgram + shouldDisableAsk + sessionToOptions - runner/linear.ts — runLinearProgram (the linear arm) - runner/types.ts — ProgramRun, BootstrapResult, AbortCase (+ re-exports) - runner/errors.ts — abortOnInstallFailure - agent-runner.ts reduced to a thin re-export shim Phase 2: move programs/orchestrator/ → agent/orchestrator/: - queue.ts, executor.ts, queue-tools.ts, run-metrics.ts and their __tests__ - orchestrator-runner.ts with updated import paths - All importers updated: wizard-tools, agent-interface, agent-prompt-loader, agent-prompt-loader.test, RunScreen.tsx No logic changes — only moves, extractions, and import fixes. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…strator modes
Moves agent/orchestrator/ into runner/orchestrator/ and runner/{bootstrap,types,errors}.ts
into runner/shared/, giving the 4-concern layout: index (dispatch), shared/, linear, orchestrator/.
Fixes all broken imports; shared/ uses @lib/@utils/@ui aliases to stay flat.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
29c190e to
415ed39
Compare
sarahxsanders
approved these changes
Jun 18, 2026
sarahxsanders
left a comment
Collaborator
There was a problem hiding this comment.
ran tests locally and looks good
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This was referenced Jun 19, 2026
Collaborator
Author
|
/wizard-ci basic-integration/angular |
🧙 Wizard CI ResultsTrigger ID:
Configuration
|
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.

Just moves things around!
Behavior-preserving split of the runner into four concerns, with dependencies pointing inward only (modes → shared; dispatch → both modes + shared).