Skip to content

feat(orchestration): DAG TaskGraph + delegate bridge + A2A bus + reflex hints#12436

Open
georgex8001 wants to merge 11 commits into
NousResearch:mainfrom
georgex8001:feat/multi-agent-orchestration-pr
Open

feat(orchestration): DAG TaskGraph + delegate bridge + A2A bus + reflex hints#12436
georgex8001 wants to merge 11 commits into
NousResearch:mainfrom
georgex8001:feat/multi-agent-orchestration-pr

Conversation

@georgex8001

Copy link
Copy Markdown
Contributor

Summary

Adds a new orchestration package under src/orchestration/:

  • TaskGraph: DAG validation (cycle detection), parallel wave execution with asyncio, fail-fast propagation (dependents → SKIPPED).
  • MultiAgentOrchestrator: orchestrates nodes via existing delegate_task (thread offload with asyncio.to_thread), no edits to delegate_tool.py.
  • AgentCommunicationBus: in-process async queue for Agent-to-Agent style messaging (wire to MCP transport can be layered on later).
  • OrchestratorRegistry: hooks for custom coordinator factories.
  • Honcho/profile hints: optional context strings + env markers (hermes_constants); state under $HERMES_HOME/orchestration/reflex_hints.jsonl via record_failure / load_recent_hints.

Packaging

  • pyproject.toml: [tool.setuptools.packages.find] adds where = [".", "src"] and orchestration to include (resolved against origin/main during cherry-pick).

Tests

pytest tests/orchestration/test_task_graph.py -q -o addopts=

@alt-glitch alt-glitch added type/feature New feature or request comp/agent Core agent loop, run_agent.py, prompt builder tool/delegate Subagent delegation labels Apr 21, 2026
@georgex8001 georgex8001 force-pushed the feat/multi-agent-orchestration-pr branch from 234dde8 to 117e288 Compare April 23, 2026 16:42
@georgex8001 georgex8001 force-pushed the feat/multi-agent-orchestration-pr branch from 91d6574 to 5231d67 Compare April 26, 2026 19:22
@georgex8001 georgex8001 force-pushed the feat/multi-agent-orchestration-pr branch from cde4ffd to 8f274f0 Compare April 26, 2026 19:40
@georgex8001

Copy link
Copy Markdown
Contributor Author

Hey team, just performed a clean reset and force-push. My local tests for orchestration (tests/orchestration/test_task_graph.py) are passing with flying colors.

However, I noticed the CI is currently failing on two fronts, which seem to be upstream issues:

Tests: There are 50+ test errors mostly originating from tests/gateway/test_discord_*.py, test_web_server.py, etc. It looks like these failures are inherited directly from the latest main branch state (possibly recent refactors in the Discord mock).

Supply Chain Audit: It fails with CRITICAL supply chain risk patterns detected, but the action bot couldn't post the details in the comments due to fork GITHUB_TOKEN being read-only.

Could someone confirm if the main branch is currently unstable? And if possible, could a maintainer check the audit action logs and let me know which specific pattern in the orchestration diff triggered the false positive?

I'll hold off on further changes until the baseline is green and we clarify the audit flag. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/agent Core agent loop, run_agent.py, prompt builder tool/delegate Subagent delegation type/feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants