Lessons from merged fixes
yof_lessonsList short lessons from Patch fixes that were merged: what was fixed, in which pull request, whether yof's next check confirmed it, and how to avoid it next time. Use it before writing similar code so the same problem does not come back; use yof_patch_status for pull requests still open. Reads stored data only (up to 50 merged pull requests, most recently opened first); a fix that yof's re-scan did not confirm is never reported as fixed. Returns lessons (repository, pull_request, merged, rule, note, avoid_next_time); an empty list means no Patch fix has been merged yet.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "yof_lessons"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app_id | No | One app's id, from yof_apps. Default: every app. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Only on a failed call (isError true): what went wrong. | |
| lessons | No | Merged Patch fixes. |