Skip to content

Feature: Agent Role-Based Routing #36

@stevei101

Description

@stevei101

Role-Based Routing System

Implement agent role detection and routing based on governance rules.

Roles to Support

  • Architect - Decision makers, system design
  • Builder - Implementation, code generation
  • Auditor - Compliance, security, validation
  • Human - Manual intervention, approval workflows

Requirements

  • AgentRole enum in src/governance/roles.rs
  • Role-specific system prompts for LLM
  • Tool restriction enforcement per role
  • Conditional routing based on role
  • Role detection from agent metadata
  • Tests for each role's behavior

Integration Points

  • LLMNode: Inject role-specific prompts
  • ToolNode: Enforce tool restrictions
  • ConditionalNode: Route based on role
  • State: AgentState includes agent_role

Testing

  • Unit tests for each role
  • Integration tests with node routing
  • End-to-end workflow with multiple roles

Related: #30 (Epic), #32 (Phase 2)
Labels: governance, routing, roles

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions