Files
nexus/wiki/concepts/Dependency-Graph.md

1.2 KiB

Dependency Graph

Definition

A structure that enforces collaboration between agents in the Hierarchy pattern by making certain agents unable to start until others have completed. The Planner feeds tasks to Workers, and the Validator gates progress, creating a directed acyclic graph of dependencies.

Role in Multi-Agent Hierarchy

  • Forces Workers to wait until Planner provides input
  • Prevents Workers from cheating or skipping steps
  • Validator catches any violations of the dependency order
  • Creates accountability through structural enforcement

Key Properties

  • Workers literally cannot start until Planner feeds them
  • If Worker tries to skip or cheat, Validator catches it
  • Models collaborate not because they "like each other" but because the graph forces them to
  • Enables parallel execution where dependencies allow

Why It Works

  • Instead of asking nicely ("please be careful"), architecture enforces correctness
  • No agent can proceed without completing its predecessors
  • The Validator verifies the chain at each step
  • Errors are caught early rather than propagating