Skip to main content

validate_can_commit

Function validate_can_commit 

Source
pub fn validate_can_commit(
    config: &Config,
    registry: &AgentRegistry,
    developer_agent: &str,
    reviewer_agent: &str,
    config_path: &Path,
) -> Result<()>
Expand description

Validates that agents are workflow-capable (can_commit=true).

Agents with can_commit=false are chat-only / non-tool agents and will stall Ralph’s workflow. This validation is skipped if a custom command override is provided.

§Arguments

  • config - The pipeline configuration
  • registry - The agent registry
  • developer_agent - Name of the developer agent
  • reviewer_agent - Name of the reviewer agent
  • config_path - Path to the unified config file for error messages

§Returns

Returns Ok(()) if validation passes, or an error with details.