Expand description
Supervisor merge loop and topological dependency ordering.
Walks the agent set in topological merge order, merges each branch into
the current branch, and runs the supervisor’s configured test command (if
any) between merges. The captured per-branch outcomes are returned for
crate::summary::write_supervisor_summary to render into the session
summary.
Pulled out of main.rs so integration tests can drive the merge loop
without spawning the binary or depending on the supervisor CLI.
Structs§
- Merge
Results - Results of running the merge loop.
Functions§
- build_
dependency_ graph - Builds a dependency graph from broker messages.
- run_
merge_ loop - Production wrapper around
run_merge_loop_with_publisher. - run_
merge_ loop_ with_ publisher - Walks the agent set in topological order, merging each branch into the
current branch, optionally running
test_commandbetween merges, and returning the per-branch outcomes. - run_
test_ command - Runs the configured test command via
sh -cand captures stdout. - topological_
merge_ order - Topological sort of the dependency graph. Returns a merge order where agents with no dependents come first (so agents that are depended upon merge before the agents that depend on them).