Couple workers to orchestrator runtime#97
Merged
Conversation
frantic-openai
force-pushed
the
codex/fix-orchestrator-worker-restart
branch
from
July 17, 2026 20:58
2acb1ed to
b4f5f49
Compare
Summary: - Supervise TaskSupervisor and Orchestrator as a one-for-all runtime. - Route agent task starts and stops through the owned supervisor. - Add a real dispatch regression for restart redispatch overlap. Rationale: - A sibling task supervisor let workers outlive the scheduler state that claimed them after an orchestrator restart. - Encoding lifecycle ownership in supervision avoids duplicate work without adding cleanup sweeps or durable leases. Tests: - mise exec -- mix test --repeat-until-failure 10 test/symphony_elixir/core_test.exs:228 - mise exec -- mix test test/symphony_elixir/core_test.exs test/symphony_elixir/orchestrator_status_test.exs - mise exec -- make all Co-authored-by: Codex <codex@openai.com>
frantic-openai
force-pushed
the
codex/fix-orchestrator-worker-restart
branch
from
July 17, 2026 21:27
b4f5f49 to
22d21a5
Compare
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.
Context
Orchestrator restarts reset in-memory claims, but sibling TaskSupervisor workers could survive and be redispatched concurrently.
TL;DR
Supervise agent workers and the orchestrator as one restart unit.
Summary
:one_for_all.Alternatives
Test Plan
make -C elixir allmise exec -- mix test --repeat-until-failure 10 test/symphony_elixir/core_test.exs:228mise exec -- mix test --cover --seed 155984 --max-cases 8mise exec -- mix test test/symphony_elixir/core_test.exs test/symphony_elixir/orchestrator_status_test.exs