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 configurationregistry- The agent registrydeveloper_agent- Name of the developer agentreviewer_agent- Name of the reviewer agentconfig_path- Path to the unified config file for error messages
§Returns
Returns Ok(()) if validation passes, or an error with details.