-
Notifications
You must be signed in to change notification settings - Fork 0
fix: harden coordination pipeline with validators, logging, and fail-fast #333
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
a5cd683
feat: wire runtime multi-agent coordination pipeline (#205)
Aureliolo e95a0b1
fix: harden coordination pipeline with validators, logging, and fail-…
Aureliolo b5f359c
fix: address 27 PR review items from local agents, CodeRabbit, and Co…
Aureliolo bfc9e2b
fix: resolve mypy errors in coordination dispatchers
Aureliolo 4a5b6cf
fix: address 6 CodeRabbit round-2 findings on coordination pipeline
Aureliolo e581af2
fix: address round-3 reviewer findings
Aureliolo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| """Multi-agent coordination engine. | ||
|
|
||
| Connects decomposition, routing, workspace isolation, and parallel | ||
| execution into an end-to-end pipeline orchestrated by topology-driven | ||
| dispatchers. | ||
| """ | ||
|
|
||
| from ai_company.engine.coordination.config import CoordinationConfig | ||
| from ai_company.engine.coordination.dispatchers import ( | ||
| CentralizedDispatcher, | ||
| ContextDependentDispatcher, | ||
| DecentralizedDispatcher, | ||
| DispatchResult, | ||
| SasDispatcher, | ||
| TopologyDispatcher, | ||
| select_dispatcher, | ||
| ) | ||
| from ai_company.engine.coordination.group_builder import build_execution_waves | ||
| from ai_company.engine.coordination.models import ( | ||
| CoordinationContext, | ||
| CoordinationPhaseResult, | ||
| CoordinationResult, | ||
| CoordinationWave, | ||
| ) | ||
| from ai_company.engine.coordination.service import MultiAgentCoordinator | ||
|
|
||
| __all__ = [ | ||
| "CentralizedDispatcher", | ||
| "ContextDependentDispatcher", | ||
| "CoordinationConfig", | ||
| "CoordinationContext", | ||
| "CoordinationPhaseResult", | ||
| "CoordinationResult", | ||
| "CoordinationWave", | ||
| "DecentralizedDispatcher", | ||
| "DispatchResult", | ||
| "MultiAgentCoordinator", | ||
| "SasDispatcher", | ||
| "TopologyDispatcher", | ||
| "build_execution_waves", | ||
| "select_dispatcher", | ||
| ] |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| """Coordination configuration.""" | ||
|
|
||
| from pydantic import BaseModel, ConfigDict, Field | ||
|
|
||
| from ai_company.core.types import NotBlankStr # noqa: TC001 | ||
|
|
||
|
|
||
| class CoordinationConfig(BaseModel): | ||
| """Configuration for a multi-agent coordination run. | ||
|
|
||
| Attributes: | ||
| max_concurrency_per_wave: Max parallel agents per wave | ||
| (``None`` = unlimited). | ||
| fail_fast: Stop on first wave failure instead of continuing. | ||
| enable_workspace_isolation: Create isolated workspaces for | ||
| multi-agent execution. | ||
| base_branch: Git branch to use for workspace isolation. | ||
| """ | ||
|
|
||
| model_config = ConfigDict(frozen=True, extra="forbid") | ||
|
|
||
| max_concurrency_per_wave: int | None = Field( | ||
| default=None, | ||
| ge=1, | ||
| description="Max parallel agents per wave (None = unlimited)", | ||
| ) | ||
| fail_fast: bool = Field( | ||
| default=False, | ||
| description="Stop on first wave failure", | ||
| ) | ||
| enable_workspace_isolation: bool = Field( | ||
| default=True, | ||
| description="Create isolated workspaces for multi-agent execution", | ||
| ) | ||
| base_branch: NotBlankStr = Field( | ||
| default="main", | ||
| description="Git branch for workspace isolation", | ||
| ) |
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.