Skip to content

Make Orchestration 2.0 the default execution path#659

Merged
Iron-Ham merged 1 commit intomainfrom
Iron-Ham/a403dd82-we-are-tackling-httpsgithubcom
Feb 10, 2026
Merged

Make Orchestration 2.0 the default execution path#659
Iron-Ham merged 1 commit intomainfrom
Iron-Ham/a403dd82-we-are-tackling-httpsgithubcom

Conversation

@Iron-Ham
Copy link
Owner

Summary

  • UltraPlan: Flips UsePipeline default to true, routing plan execution through the Orch 2.0 pipeline backend (Pipeline → team.Manager → Bridge) instead of the legacy ExecutionOrchestrator. Adds ExecutionRunner interface with factory-based injection to break import cycles.
  • TripleShot: Wires teamwire.TeamCoordinator as the default execution path, replacing file-based polling with callback-driven execution via a buffered channel bridge into Bubble Tea. Falls back to legacy for adversarial mode or when tripleshot.use_legacy config is set.
  • Shared infrastructure: Adds tripleshot.Runner interface for dual-coordinator coexistence, NewTripleShotAdapters() factory for cycle-safe adapter creation, pipeline_wire.go wiring files for lazy PipelineRunner instantiation, and 7 new Bubble Tea message types for teamwire events.
  • Bug fixes from deep review: Fixed channel close panic (nil-guard), goroutine leak (stop re-subscribing after completion), channel overwrite leak (close old channel), silent SaveSession() errors (now logged), generic error messages (improved context), and missing session error details in PhaseFailed handler.

Test plan

  • go build ./... passes
  • go vet ./... passes
  • gofmt -d . shows no output
  • go test -race ./internal/orchestrator/... passes (coordinator pipeline path tests)
  • go test -race ./internal/tui/... passes (view type changes, handler tests)
  • go test -race ./internal/orchestrator/workflows/tripleshot/teamwire/... passes
  • Manual: start a session with UsePipeline: true → verify pipeline executes
  • Manual: start a tripleshot → verify teamwire callbacks drive the UI
  • Manual: start an adversarial tripleshot → verify legacy fallback
  • Manual: set tripleshot.use_legacy: true → verify legacy path

Make Orch 2.0 the default for both UltraPlan and TripleShot sessions:

- UltraPlan: flip UsePipeline default to true, routing execution through
  the pipeline backend instead of legacy ExecutionOrchestrator
- TripleShot: wire teamwire.TeamCoordinator as default, replacing file
  polling with callback-driven execution via buffered channel bridge
- Adversarial mode and session restoration stay on legacy path

Add tripleshot.Runner interface for dual-coordinator coexistence,
NewTripleShotAdapters() factory to break import cycles, and
pipeline_wire.go wiring files for lazy PipelineRunner creation.

Fix channel safety issues: nil-guard close to prevent double-close
panic, stop re-subscribing after completion to prevent goroutine leak,
close old channel on overwrite. Log SaveSession() errors instead of
discarding. Improve pipeline factory error messages for users.
@Iron-Ham Iron-Ham force-pushed the Iron-Ham/a403dd82-we-are-tackling-httpsgithubcom branch from 6911b9e to 5df7b74 Compare February 10, 2026 15:25
@Iron-Ham Iron-Ham merged commit ee93616 into main Feb 10, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments