Two things kept crashing longer test runs so I fixed them both today. Claude was returning malformed JSON about one in fifteen runs despite explicit instructions, either wrapping output in backticks or adding a trailing comma, so I added a cleanup step before JSON.parse and a retry that sends the raw response back with “this was not valid JSON, return only the array with no other text.” The second issue was unverifiable claims burning three full search iterations and returning nothing, so I added a classification step upfront where subjective claims skip the loop entirely and return a subjective_claim flag instead.
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.