Skip to main content

draft_problems

Function draft_problems 

Source
pub fn draft_problems(chat: &Chat) -> Result<(), Vec<String>>
Expand description

Is this conversation’s draft fileable, and if not, what is wrong with it?

Every problem is returned, not the first: an operator about to ask the agent for a fix wants the whole list, and a validator that reveals one defect per round turns one follow-up message into three.

plan::SHORT_DRAFT alone does not refuse. Length is a smell, not a defect, and a genuinely small change deserves a small task file - which is exactly the judgement magi plan makes, so the browser path makes it too. It is still reported, because a two-line draft is usually an interview that ended early.