Grade an answer
gradeReview Leanfare delegate answers and plan parts, assign good/partly/wrong verdicts, and repair flawed results before using them in a response.
Instructions
Review every answer Leanfare brings back (delegate, or a plan's part from plan_status) before you use it, then say how good it was: good, partly or wrong. Grade a delegate answer with handoff (the number in its receipt); a plan's part with id and part. If it is partly or wrong, fix it before you answer the user: yourself (fix myself), or with fix leanfare and why, and Leanfare asks again one tier up and returns the new answer, a new hand off to review and grade too. Leanfare keeps only the grade, with the model that answered and the kind of part, never the words; why goes only to the model asked again. A model graded below good too often for a kind is moved down, so plans and delegate stop picking it for that kind. At the end of a prompt that handed work off, grade its whole result too, your work and the hand offs together: whole true and the verdict.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | The plan's id, from plan. | |
| fix | No | With partly or wrong. myself: you fixed it yourself before answering. leanfare: Leanfare asks again one tier up, with why, by another model, and returns the new answer. | |
| why | No | With fix leanfare: what was wrong or missing, in a line or two. It goes to the model asked again, and is not kept. | |
| kind | No | For a delegate answer: the kind you gave it. | |
| part | No | The part's number in the plan. | |
| model | No | For a delegate answer: the model id its receipt named, such as deepseek/deepseek-v4-flash. | |
| whole | No | true: grade the final result of the prompt you are on, your own work and Leanfare's parts together (once, at the end of a prompt that handed work off). Only the verdict is needed with it. | |
| checks | No | With id: the project's checks you ran once the plan's parts were back, by their numbers in the plan (passed and failed), and why in a line for a failure. | |
| handoff | No | For a delegate answer: the hand off's number, from its receipt. Enough on its own. | |
| verdict | Yes | good: you used it as it was. partly: you had to fix or redo some of it. wrong: you could not use it. |